LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ChangeToWmf Method
See Also 



image
The source image.
image
The source image.
Changes a LEADTOOLS Leadtools.RasterImage object into a Windows Metafile (WMF) and, if successful, frees the image data.

Syntax

Visual Basic (Declaration) 
Public Shared Function ChangeToWmf( _
   ByVal image As RasterImage _
) As IntPtr
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim value As IntPtr
 
value = RasterImageConverter.ChangeToWmf(image)
C# 
public static IntPtr ChangeToWmf( 
   RasterImage image
)
C++/CLI 
public:
static IntPtr ChangeToWmf( 
   RasterImage^ image
) 

Parameters

image
The source image.

Return Value

A handle to the Windows metafile (WMF) this method creates.

Example

Remarks

This method results in only one copy of the image, and it invalidates this Leadtools.RasterImage object. You must call RasterImage.Dispose after calling this method.

This function allocates an metafile bitmap and copies the Leadtools.RasterImage object to the metafile.

When you no longer need the metafile, you can free it using the Windows DeleteMetaFile function.

This function does not support signed images.

For more information refer to RasterImage and GDI/GDI+.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also