←Select platform

ChangeToHBitmap(RasterImage,IntPtr) Method

Summary

Changes a LEADTOOLS Leadtools.RasterImage object to a Windows Device-Dependent Bitmap (DDB).

Syntax

C#
VB
C++
public static IntPtr ChangeToHBitmap( 
   RasterImage image, 
   IntPtr hdc 
) 
Public Overloads Shared Function ChangeToHBitmap( _ 
   ByVal image As Leadtools.RasterImage, _ 
   ByVal hdc As IntPtr _ 
) As IntPtr 
public: 
static IntPtr ChangeToHBitmap(  
   Leadtools.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

Help Version 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Drawing Assembly