ClearImage COM API
SaveToDIB Method
CiImage Object : SaveToDIB Method
Description
Copy image to new Windows DIB
Syntax
Visual Basic
Public Function SaveToDIB() As Long
Remarks

This method creates Device Independent Bitmap (DIB).  DIB starts with BITMAPINFOHEADER structure. Use Window's GlobalFree method to free bitmap memory and avoid memory leaks

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