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




Changes a LEAD RasterImage object to a Windows Device Dependent Bitmap (DDB).

Syntax

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

Return Value

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

Example

This example loads a RasterImage, changes it to a DDB and then changes it back to RasterImage.

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 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