Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As CiImage Dim hBitmap As IntPtr Dim value As Integer value = instance.OpenFromBitmap(hBitmap) |
Parameters
- 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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family