Copy image to new Windows DIB
Visual Basic |
---|
Public Function SaveToDIB() As Long |
Creates Device Independent Bitmap (DIB). DIB starts with BITMAPINFOHEADER structure. To release DIB created by this function use GlobalFree (hDib)
VB Example (Visual Basic) | Copy Code |
---|---|
Public Sub T_Bitmap(ByRef Img As CiImage) Dim hBitmap ' DDB test hBitmap = Img.SaveToBitmap Img.Clear Img.OpenFromBitmap hBitmap End Sub Public Sub T_Dib(ByRef Img As CiImage) Dim hDib ' DIB test hDib = Img.SaveToDIB Img.Clear Img.OpenFromBitmap hDib End Sub |