OpenFromBitmap Method
ClearImage COM Server
OpenFromBitmap Method
See Also  Example  Send Feedback
hBitmap
CiImage Object : OpenFromBitmap Method

Description

Create image from Windows Bitmap

Syntax

Visual Basic
Public Sub OpenFromBitmap( _
   ByVal hBitmap As Long _
) 

Parameters

hBitmap

Remarks

!MISSING PHRASE '_ZONEFAIL_IMG'!

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. 

Example

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

See Also

© 1992-2011. Inlite Research, Inc. All Rights Reserved.