ClearImage 8 Help
OpenFromBitmap Method
See Also  Send Feedback
Inlite.ClearImage Namespace > CiImage Class : OpenFromBitmap Method






hBitmap
Create image from Windows Bitmap

Syntax

Visual Basic (Declaration) 
Public Function OpenFromBitmap( _
   ByVal hBitmap As IntPtr _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As CiImage
Dim hBitmap As IntPtr
Dim value As Integer
 
value = instance.OpenFromBitmap(hBitmap)
C# 
public int OpenFromBitmap( 
   IntPtr hBitmap
)
Delphi 
public function OpenFromBitmap( 
    hBitmap: IntPtr
): Integer; 
JScript 
public function OpenFromBitmap( 
   hBitmap : IntPtr
) : int;
Managed Extensions for C++ 
public: int OpenFromBitmap( 
   IntPtr hBitmap
) 
C++/CLI 
public:
int OpenFromBitmap( 
   IntPtr hBitmap
) 

Parameters

hBitmap

Remarks

This method generates an error if Image object is a zone.

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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2007-2013. Inlite Research, Inc. All Rights Reserved.