public static Bitmap ToBitmap(
this Metafile metafile,
Size requestedSize,
bool antiAliased,
bool keepAspectRatio
)<ExtensionAttribute>
Public Shared Function ToBitmap (
metafile As Metafile,
requestedSize As Size,
antiAliased As Boolean,
keepAspectRatio As Boolean
) As Bitmappublic:
[ExtensionAttribute]
static Bitmap^ ToBitmap(
Metafile^ metafile,
Size requestedSize,
bool antiAliased,
bool keepAspectRatio
)[<ExtensionAttribute>]
static member ToBitmap :
metafile : Metafile *
requestedSize : Size *
antiAliased : bool *
keepAspectRatio : bool -> Bitmap If the source metafile contains already anti-aliased records, setting antiAliased to will not improve the result. It also does not really help if the metafile contains only bitmap drawing records.
If the requestedSize is very large, the conversion may omit anti-aliasing.