#include "ltwrappr.h"
virtual L_INT LBitmapBase::ConvertFromDDB(hDC, hBitmap, hPalette)
| HDC hDC; | handle to the device responsible for the conversion | 
| HBITMAP hBitmap; | handle to the DDB to be converted | 
| HPALETTE hPalette; | handle to the palette | 
Converts a Windows device dependent bitmap (DDB) into an LBitmapBase objects bitmap. When this function is completed, there are two copies of the image in memory: the original DDB and the LEAD bitmap. Freeing one will not affect the other.
| Parameter | Description | 
| hDC | Handle to the device responsible for the conversion. The mapping mode of the device context must be MM_TEXT. | 
| hBitmap | Handle to the DDB to be converted. | 
| hPalette | Handle to the palette. This value can be NULL if the hDC parameter refers to a device that is greater than 8 bits, or if the bitmap will use the system palette. | 
| SUCCESS | The function was successful. | 
| < 1 | An error occurred. Refer to Return Codes. | 
This function updates information in the bitmap handle and copies the DDB image data into the LBitmapBase objects bitmap.
Required DLLs and Libraries
| LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. | 
Win32, x64.
| Functions: | LBitmapBase::ConvertFromDIB, LBitmapBase::ConvertToDIB, Class Members | 
| Topics: | |
| 
 | 
For an example, refer to LBitmapBase::ConvertToDDB.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
