![]() |
|
MetafileExtensionsToBitmap Method | KGy SOFT Drawing Libraries Help |
Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.6.0
Syntax
public static Bitmap ToBitmap( this Metafile metafile, Size requestedSize, bool antiAliased = false )
<ExtensionAttribute> Public Shared Function ToBitmap ( metafile As Metafile, requestedSize As Size, Optional antiAliased As Boolean = false ) As Bitmap
public: [ExtensionAttribute] static Bitmap^ ToBitmap( Metafile^ metafile, Size requestedSize, bool antiAliased = false )
[<ExtensionAttribute>] static member ToBitmap : metafile : Metafile * requestedSize : Size * ?antiAliased : bool (* Defaults: let _antiAliased = defaultArg antiAliased false *) -> Bitmap
Parameters
- metafile
- Type: System.Drawing.ImagingMetafile
The Metafile to convert. - requestedSize
- Type: System.DrawingSize
The requested size of the result Bitmap. - antiAliased (Optional)
- Type: SystemBoolean
to create an anti-aliased result; otherwise, .
Default value: .
Return Value
Type: BitmapA Bitmap instance of the requested size.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Metafile. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also