Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ChangeToWmf Method
See Also 
Leadtools Namespace > RasterImage Class : ChangeToWmf Method



Changes a LEAD RasterImage object into a Windows metafile (WMF) and, if successful, frees the image data.

Syntax

Visual Basic (Declaration)  
Public Function ChangeToWmf() As IntPtr
Visual Basic (Usage) Copy Code
Dim instance As RasterImage
Dim value As IntPtr
 
value = instance.ChangeToWmf()
C#  
public IntPtr ChangeToWmf()
C++/CLI  
public:
IntPtr ChangeToWmf(); 

Return Value

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

Example

For an example, refer to ChangeFromWmf.

Remarks

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

This function allocates an metafile bitmap and copies the 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.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also