public static IntPtr ToHBitmap( RasterImage image )
'Declaration Public Overloads Shared Function ToHBitmap( _ ByVal image As RasterImage _ ) As IntPtr
'Usage Dim image As RasterImage Dim value As IntPtr value = RasterImageConverter.ToHBitmap(image)
public static IntPtr ToHBitmap( RasterImage image )
function Leadtools.Drawing.RasterImageConverter.ToHBitmap(RasterImage)( image )
public: static IntPtr ToHBitmap( RasterImage^ image )
Converts a Leadtools.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 Leadtools.RasterImage. Freeing one does not affect the other.
NOTE: This method returns the data in an unmanaged handle. The caller is responsible for freeing the DDB's handle when it is no longer needed using the DeleteObject Windows API. Otherwise, your application will leak resources.
For more information on DDBs and DIBs, refer to Introduction: DIBs, DDBs, and the Clipboard.
For more information refer to RasterImage and GDI/GDI+.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2