Changes a Windows Enhanced Metafile (EMF) into a LEADTOOLS Leadtools.RasterImage object and, if successful, frees the Enhanced Metafile.
public static RasterImage ChangeFromEmf(
Public Overloads Shared Function ChangeFromEmf( _
ByVal hemf As IntPtr, _
ByVal width As Integer, _
ByVal height As Integer, _
ByVal backColor As RasterColor _
) As RasterImage
static RasterImage^ ChangeFromEmf(
Handle to the EMF to be changed.
Amount by which to scale the enhanced metafile's original width.
Amount by which to scale the enhanced metafile's original height.
The color to use to fill the image area before painting the metafile objects.
The newly created Leadtools.RasterImage object.
Some metafiles do not have a background color, and hence, when the metafile is used to create a Leadtools.RasterImage object, the area not covered by the metafile objects will contain the default image background color (black). To create a raster image from a metafile like this with a specific background color, set the desired background color in the backColor parameter.
If this method is successful, hemf is freed.
This method does not support signed images.
For more information refer to RasterImage and GDI/GDI+.
For an example, refer to ChangeFromEmf(IntPtr, int, int).