 | PdfiumFPDFBitmap_CreateEx(Int32, Int32, FXDIBFormats, IntPtr, Int32) Method |
Create a device independent bitmap with the specified width, height, pixel format and external buffer.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static IntPtr FPDFBitmap_CreateEx(
int width,
int height,
FXDIBFormats format,
IntPtr first_scan,
int stride
)
Public Shared Function FPDFBitmap_CreateEx (
width As Integer,
height As Integer,
format As FXDIBFormats,
first_scan As IntPtr,
stride As Integer
) As IntPtr
public:
static IntPtr FPDFBitmap_CreateEx(
int width,
int height,
FXDIBFormats format,
IntPtr first_scan,
int stride
)
static member FPDFBitmap_CreateEx :
width : int *
height : int *
format : FXDIBFormats *
first_scan : IntPtr *
stride : int -> IntPtr
public static IntPtr FPDFBitmap_CreateEx(
int width,
int height,
FXDIBFormats format,
IntPtr first_scan,
int stride
)
Patagames.Pdf.Pdfium.FPDFBitmap_CreateEx = function(width, height, format, first_scan, stride);
Parameters
- width Int32
- Number of pixels in a horizontal line of the bitmap. Must be greater than 0.
- height Int32
- Number of pixels in a vertical line of the bitmap. Must be greater than 0.
- format FXDIBFormats
- A number indicating for bitmap format, as defined in FXDIBFormats enumeration.
- first_scan IntPtr
- A pointer to the first byte of first scan line, for external buffer only. If this parameter is IntPtr.Zero, then the SDK will create its own buffer.
- stride Int32
- Number of bytes for each scan line, for external buffer only.
Return Value
IntPtrThe created bitmap handle, or IntPtr.Zero if a parameter error or out of memory.
RemarksSimilar to FPDFBitmap_Create(Int32, Int32, Boolean) function, with support for more formats and an external buffer.
Bitmap created by this function can be used in any place that a device independent bitmap handle is required.
If external scanline buffer is used, then the application should destroy the buffer by itself.
The FPDFBitmap_Destroy(IntPtr) function will not destroy the buffer.
When an application is finished using the bitmap handle returned by {0} Overload, use the FPDFBitmap_Destroy(IntPtr) function to close the handle.
See Also