Skip to content

M_PDFiumSharp_PDFium_FPDFBitmap_CreateEx

ArgusMagnus edited this page Apr 4, 2017 · 3 revisions

PDFium.FPDFBitmap_CreateEx Method

Create a device independent bitmap (FXDIB).

Namespace: PDFiumSharp
Assembly: PDFiumSharp (in PDFiumSharp.dll) Version: 1.0.0

Syntax

C#

public static FPDF_BITMAP FPDFBitmap_CreateEx(
	int width,
	int height,
	BitmapFormats format,
	IntPtr first_scan,
	int stride
)

Parameters

 

width
Type: System.Int32
The number of pixels in width for the bitmap. Must be greater than 0.
height
Type: System.Int32
The number of pixels in height for the bitmap. Must be greater than 0.
format
Type: PDFiumSharp.BitmapFormats
first_scan
Type: System.IntPtr
A pointer to the first byte of the first line if using an external buffer. If this parameter is Zero then the a new buffer will be created.
stride
Type: System.Int32
Number of bytes for each scan line, for external buffer only.

Return Value

Type: FPDF_BITMAP
The bitmap handle, or Zero if parameter error or out of memory.

Remarks

Similar to FPDFBitmap_Create(Int32, Int32, Boolean) 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 handle is required. If an external buffer is used, then the application should destroy the buffer by itself. FPDFBitmap_Destroy(FPDF_BITMAP) function will not destroy the buffer.

See Also

Reference

PDFium Class
PDFiumSharp Namespace
PDFiumBitmap.PDFiumBitmap(Int32, Int32, BitmapFormats, IntPtr, Int32)

Clone this wiki locally