ClearImage COM API
OpenFromBitmap Method
CiImage Object : OpenFromBitmap Method
Description
Create image from Windows Bitmap
Syntax
Visual Basic
Public Sub OpenFromBitmap( _
   ByVal hBitmap As Long _
) 
Parameters
hBitmap
Remarks

hBitmap points either to a Windows Device Dependent Bitmap (DDB) or Device Independent Bitmap (DIB).  

 

This method does not free hBitmap memory.  Use GlobalFree for DIB and DeleteObject for DDB to free memory when no longer needed.
This method generates an error if object.Image.IsZone is true.
Example
Sub T_Bitmap(ByRef Img As CiImage)
  Dim hBitmap
    '  DDB test
  hBitmap = Img.SaveToBitmap
  Img.Clear
  Img.OpenFromBitmap hBitmap
End Sub

Sub T_Dib(ByRef Img As CiImage)
  Dim hDib
    ' DIB test
  hDib = Img.SaveToDIB
  Img.Clear
  Img.OpenFromBitmap hDib
End Sub
See Also

CiImage Object  | CiImage Members  | SaveToBitmap  | SaveToDIB  | OpenFromBitmap