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



hdc
Handle to the device responsible for the conversion. The mapping mode of the device context must be MM_TEXT.
Changes a LEAD RasterImage object to a Windows Device Dependent Bitmap (DDB).

Syntax

Visual Basic (Declaration) 
Public Overloads Function ChangeToHBitmap( _
   ByVal hdc As IntPtr _
) As IntPtr
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim hdc As IntPtr
Dim value As IntPtr
 
value = instance.ChangeToHBitmap(hdc)
C# 
public IntPtr ChangeToHBitmap( 
   IntPtr hdc
)
C++/CLI 
public:
IntPtr ChangeToHBitmap( 
   IntPtr hdc
) 

Parameters

hdc
Handle to the device responsible for the conversion. The mapping mode of the device context must be MM_TEXT.

Return Value

A handle to the device dependent bitmap (DDB) this method creates.

Example

For an example, refer to ChangeToHBitmap.

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.

For more information on DDBs and DIBs, refer to Using DIBs, DDBs, and the Clipboard.

Requirements

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

See Also