本文整理汇总了C#中MetafileFrameUnit类的典型用法代码示例。如果您正苦于以下问题:C# MetafileFrameUnit类的具体用法?C# MetafileFrameUnit怎么用?C# MetafileFrameUnit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MetafileFrameUnit类属于命名空间,在下文中一共展示了MetafileFrameUnit类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Metafile
public Metafile(string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type, string description)
{
int num;
System.Drawing.IntSecurity.DemandReadFileIO(fileName);
System.Drawing.IntSecurity.ObjectFromWin32Handle.Demand();
IntPtr zero = IntPtr.Zero;
if (frameRect.IsEmpty)
{
num = SafeNativeMethods.Gdip.GdipRecordMetafileFileName(fileName, new HandleRef(null, referenceHdc), (int) type, System.Drawing.NativeMethods.NullHandleRef, (int) frameUnit, description, out zero);
}
else
{
GPRECT gprect = new GPRECT(frameRect);
num = SafeNativeMethods.Gdip.GdipRecordMetafileFileNameI(fileName, new HandleRef(null, referenceHdc), (int) type, ref gprect, (int) frameUnit, description, out zero);
}
if (num != 0)
{
throw SafeNativeMethods.Gdip.StatusException(num);
}
base.SetNativeImage(zero);
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:21,代码来源:Metafile.cs
示例2: GdipRecordMetafileFromDelegateI_linux
static internal extern Status GdipRecordMetafileFromDelegateI_linux (StreamGetHeaderDelegate getHeader,
StreamGetBytesDelegate getBytes, StreamPutBytesDelegate putBytes, StreamSeekDelegate doSeek,
StreamCloseDelegate close, StreamSizeDelegate size, IntPtr hdc, EmfType type, ref Rectangle frameRect,
MetafileFrameUnit frameUnit, [MarshalAs (UnmanagedType.LPWStr)] string description, out IntPtr metafile);
开发者ID:Profit0004,项目名称:mono,代码行数:4,代码来源:gdipFunctions.cs
示例3: Metafile
public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit,
EmfType type) : this (fileName, referenceHdc, frameRect, frameUnit, type, null)
{
}
开发者ID:nlhepler,项目名称:mono,代码行数:4,代码来源:Metafile.cs
示例4: Metafile
public Metafile(string fileName, System.IntPtr referenceHdc, System.Drawing.Rectangle frameRect, MetafileFrameUnit frameUnit, string description) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:Metafile.cs
示例5: Metafile
public Metafile(String fileName, IntPtr referenceHdc,
Rectangle frameRect, MetafileFrameUnit frameUnit,
EmfType type, String description)
{
// TODO
}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:6,代码来源:Metafile.cs
示例6: Metafile
public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type,
string description)
{
throw new NotImplementedException ();
}
开发者ID:GirlD,项目名称:mono,代码行数:5,代码来源:Metafile.jvm.cs
示例7: RecordFileName
private void RecordFileName (IntPtr hdc, EmfType type, MetafileFrameUnit unit)
{
string filename = String.Format ("test-{0}-{1}.emf", type, unit);
IntPtr metafile;
RectangleF rect = new RectangleF (10, 20, 100, 200);
Status status = GDIPlus.GdipRecordMetafileFileName (filename, hdc, type, ref rect, unit, filename, out metafile);
if (metafile != IntPtr.Zero)
GDIPlus.GdipDisposeImage (metafile);
if (status == Status.Ok)
File.Delete (filename);
Assert.AreEqual (Status.Ok, status, filename);
}
开发者ID:RobertZenz,项目名称:mono,代码行数:12,代码来源:GDIPlusTest.cs
示例8: RecordFileName_EmptyRectangle
private Status RecordFileName_EmptyRectangle (IntPtr hdc, MetafileFrameUnit unit)
{
string filename = String.Format ("emptyrectangle-{0}.emf", unit);
IntPtr metafile = IntPtr.Zero;
RectangleF empty = new RectangleF ();
Status status = GDIPlus.GdipRecordMetafileFileName (filename, hdc, EmfType.EmfPlusDual, ref empty, unit, filename, out metafile);
if (metafile != IntPtr.Zero)
GDIPlus.GdipDisposeImage (metafile);
if (status == Status.Ok)
File.Delete (filename);
return status;
}
开发者ID:RobertZenz,项目名称:mono,代码行数:12,代码来源:GDIPlusTest.cs
示例9: Metafile
public Metafile(string fileName, IntPtr referenceHdc, RectangleF frameRect,
MetafileFrameUnit frameUnit, EmfType type, String description)
{
IntSecurity.DemandReadFileIO(fileName);
IntSecurity.ObjectFromWin32Handle.Demand();
IntPtr metafile = IntPtr.Zero;
GPRECTF rectf = new GPRECTF(frameRect);
int status = SafeNativeMethods.Gdip.GdipRecordMetafileFileName(fileName,
new HandleRef(null, referenceHdc),
unchecked((int)type),
ref rectf,
unchecked((int)frameUnit),
description,
out metafile);
if (status != SafeNativeMethods.Gdip.Ok)
throw SafeNativeMethods.Gdip.StatusException(status);
SetNativeImage(metafile);
}
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:22,代码来源:Metafile.cs
示例10: GdipRecordMetafileFileNameI
internal static extern Status GdipRecordMetafileFileNameI ([MarshalAs (UnmanagedType.LPWStr)] string filename, IntPtr hdc, EmfType type,
ref Rectangle frameRect, MetafileFrameUnit frameUnit, [MarshalAs (UnmanagedType.LPWStr)] string description, out IntPtr metafile);
开发者ID:Profit0004,项目名称:mono,代码行数:2,代码来源:gdipFunctions.cs
示例11: GdipRecordMetafileStreamI
internal static extern Status GdipRecordMetafileStreamI ([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(ComIStreamMarshaler))] IStream stream, IntPtr hdc,
EmfType type, ref Rectangle frameRect, MetafileFrameUnit frameUnit, [MarshalAs (UnmanagedType.LPWStr)] string description, out IntPtr metafile);
开发者ID:Profit0004,项目名称:mono,代码行数:2,代码来源:gdipFunctions.cs
示例12: Metafile
public Metafile(System.IO.Stream stream, System.IntPtr ptr, Drawing.RectangleF rect, MetafileFrameUnit unit)
{
throw new NotImplementedException();
}
开发者ID:NelsonSantos,项目名称:fyiReporting-Android,代码行数:5,代码来源:Metafile.cs
注:本文中的MetafileFrameUnit类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论