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



Converts a LEAD RasterImage object into a Windows enhanced metafile (EMF).

Syntax

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

Return Value

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

Example

For an example, refer to FromEmf

Remarks

When this method is completed, there are two copies of the drawing in memory: the EMF and the original RasterImage object. Freeing one will not affect the other.

This function allocates an enhanced metafile bitmap and copies the RasterImage data 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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also