![]() | PdfiumFPDFBitmap_ |
public static IntPtr FPDFBitmap_Create( int width, int height, bool isUseAlpha )
Public Shared Function FPDFBitmap_Create ( width As Integer, height As Integer, isUseAlpha As Boolean ) As IntPtr
public: static IntPtr FPDFBitmap_Create( int width, int height, bool isUseAlpha )
static member FPDFBitmap_Create : width : int * height : int * isUseAlpha : bool -> IntPtr
public static IntPtr FPDFBitmap_Create( int width, int height, boolean isUseAlpha )
Patagames.Pdf.Pdfium.FPDFBitmap_Create = function(width, height, isUseAlpha);
A bitmap created by this function, always use 4 byte per pixel. The first byte of a pixel is always double word aligned. Each pixel contains red (R), green (G), blue (B) and optionally alpha (A) values. The byte order is BGRx (the last byte unused if no alpha channel) or ARGB.
The pixels in a horizontal line (also called scan line) are stored side by side, with left most pixel stored first (with lower memory address). Each scan line uses width*4 bytes. Scan lines are stored one after another, with top most scan line stored first. There is no gap between adjacent scan lines.
This function allocates enough memory for holding all pixels in the bitmap, but it doesn't initialize the buffer. Applications can use FPDFBitmap_FillRect(IntPtr, Int32, Int32, Int32, Int32, Int32) or FPDFBitmap_Clear(IntPtr, UInt32) to fill the bitmap using any color.
When an application is finished using the bitmap handle returned by FPDFBitmap_Create(Int32, Int32, Boolean), use the FPDFBitmap_Destroy(IntPtr) function to close the handle.