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




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

Syntax

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

Return Value

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

Example

For an example, refer to ChangeFromEmf.

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 enhanced metafile bitmap and copies the RasterImage object to the enhanced metafile.

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

This function does not support signed images.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also