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




Creates a Windows device dependent bitmap (DDB) from this RasterImage.

Syntax

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

Return Value

A handle to the Windows DDB this method creates.

Example

For an example, refer to FromHBitmap.

Remarks

Converts a RasterImage object into a Windows device dependent bitmap (DDB). When this method is completed, there are two copies of the image in memory: the DDB and the original RasterImage. Freeing one will not affect the other.

For more information on DDBs and DIBs, refer to Introduction.

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