pub unsafe extern "C" fn FPDFBitmap_CreateEx(
    width: c_int,
    height: c_int,
    format: c_int,
    first_scan: *mut c_void,
    stride: c_int
) -> FPDF_BITMAP
Expand description

Function: FPDFBitmap_CreateEx Create a device independent bitmap (FXDIB) Parameters: width - The number of pixels in width for the bitmap. Must be greater than 0. height - The number of pixels in height for the bitmap. Must be greater than 0. format - A number indicating for bitmap format, as defined above. first_scan - A pointer to the first byte of the first line if using an external buffer. If this parameter is NULL, then the a new buffer will be created. stride - Number of bytes for each scan line, for external buffer only. Return value: The bitmap handle, or NULL if parameter error or out of memory. Comments: Similar to FPDFBitmap_Create function, but allows for more formats and an external buffer is supported. The bitmap created by this function can be used in any place that a FPDF_BITMAP handle is required.

     If an external buffer is used, then the application should destroy
     the buffer by itself. FPDFBitmap_Destroy function will not destroy
     the buffer.