Skip to content

M_PDFiumSharp_PDFiumBitmap__ctor_1

ArgusMagnus edited this page Apr 4, 2017 · 2 revisions

PDFiumBitmap Constructor (Int32, Int32, Boolean)

Creates a new PDFiumBitmap. Unmanaged memory is allocated which must be freed by calling Dispose(FPDF_BITMAP).

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

Syntax

C#

public PDFiumBitmap(
	int width,
	int height,
	bool hasAlpha
)

Parameters

 

width
Type: System.Int32
The width of the new bitmap.
height
Type: System.Int32
The height of the new bitmap.
hasAlpha
Type: System.Boolean
A value indicating wheter the new bitmap has an alpha channel.

Remarks

A bitmap created with this overload always uses 4 bytes per pixel. Depending on hasAlpha the Format is then either FPDFBitmap_BGRA or FPDFBitmap_BGRx.

See Also

Reference

PDFiumBitmap Class
PDFiumBitmap Overload
PDFiumSharp Namespace

Clone this wiki locally