Create image from Windows Bitmap
Visual Basic |
---|
Public Sub OpenFromBitmap( _ ByVal hBitmap As Long _ ) |
- hBitmap
This method generates an error if Image object is a zone.
hBitmap points either to a Windows Device Dependent Bitmap (DDB) or Device Independent Bitmap (DIB).
- DDB should start with BITMAP structure.
- DIB should start with BITMAPINFOHEADER structure.
hBitmap memory is not freed by this method. Use GlobalFree for DIB and DeleteObject for DDB to free memory.
VB Example (Visual Basic) | ![]() | |
---|---|---|
|