Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.08 KB

File metadata and controls

53 lines (36 loc) · 1.08 KB

Home

Function name : GdipCreateBitmapFromGdiDib

Group: GDI+ Bitmap - Library: gdiplus


Creates a Bitmap object based on a BITMAPINFO structure and an array of pixel data.


Code examples:

Custom GDI+ class

Declaration:

GpStatus WINGDIPAPI GdipCreateBitmapFromGdiDib(
	GDIPCONST BITMAPINFO* gdiBitmapInfo,
	VOID* gdiBitmapData,
	GpBitmap** bitmap
)
  

FoxPro declaration:

DECLARE INTEGER GdipCreateBitmapFromGdiDib IN gdiplus;
	INTEGER   gdiBitmapInfo,;
	INTEGER   gdiBitmapData,;
	INTEGER @ hBitmap
  

Parameters:

gdiBitmapInfo [in] Pointer to a Microsoft Windows Graphics Device Interface (GDI)BITMAPINFO structure.

gdiBitmapData [in] Pointer to an array of bytes that contains the pixel data.

bitmap [out] Handle to the GDI+ bitmap object.


Return value:

Returns 0 on success or gpstatus value in case of an error.