ClearImage .NET API
OpenFromBitmap Method (CiImage)





Inlite.ClearImage Namespace > CiImage Class : OpenFromBitmap Method
Create image from Windows Bitmap
Syntax
'Declaration
 
Public Function OpenFromBitmap( _
   ByVal hBitmap As System.IntPtr _
) As System.Integer
'Usage
 
Dim instance As CiImage
Dim hBitmap As System.IntPtr
Dim value As System.Integer
 
value = instance.OpenFromBitmap(hBitmap)
public System.int OpenFromBitmap( 
   System.IntPtr hBitmap
)
public function OpenFromBitmap( 
    hBitmap: System.IntPtr
): System.Integer; 
public function OpenFromBitmap( 
   hBitmap : System.IntPtr
) : System.int;
public:
System.int OpenFromBitmap( 
   System.IntPtr hBitmap
) 

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.
See Also

Reference

CiImage Class
CiImage Members