LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly)
LEAD Technologies, Inc

ChangeToHBitmap(RasterImage,IntPtr) Method






The source image.
Handle to the device responsible for the conversion. The mapping mode of the device context must be MM_TEXT.
Changes a LEADTOOLS Leadtools.RasterImage object to a Windows Device-Dependent Bitmap (DDB).
Syntax
public static IntPtr ChangeToHBitmap( 
   RasterImage image,
   IntPtr hdc
)
'Declaration
 
Public Overloads Shared Function ChangeToHBitmap( _
   ByVal image As RasterImage, _
   ByVal hdc As IntPtr _
) As IntPtr
'Usage
 
Dim image As RasterImage
Dim hdc As IntPtr
Dim value As IntPtr
 
value = RasterImageConverter.ChangeToHBitmap(image, hdc)
public static IntPtr ChangeToHBitmap( 
   RasterImage image,
   IntPtr hdc
)
 function Leadtools.Drawing.RasterImageConverter.ChangeToHBitmap(RasterImage,IntPtr)( 
   image ,
   hdc 
)
public:
static IntPtr ChangeToHBitmap( 
   RasterImage^ image,
   IntPtr hdc
) 

Parameters

image
The source image.
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.
Remarks

This method results in only one copy of the image, and it invalidates this Leadtools.RasterImage object. You must call RasterImage.Dispose after calling this method.

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

For more information refer to RasterImage and GDI/GDI+.

Example
For an example, refer to ChangeToHBitmap(RasterImage,IntPtr).
Requirements

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

See Also

Reference

RasterImageConverter Class
RasterImageConverter Members
Overload List
FromHBitmap(IntPtr,IntPtr) Method
ToHBitmap(RasterImage) Method
ChangeFromHBitmap(IntPtr,IntPtr) Method
RasterImage.FromDib
RasterImage.ToDib
RasterImage.ChangeFromDib
RasterImage.ChangeToDib

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.