M_PDFiumSharp_PDFium_FPDFBitmap_GetBuffer - ArgusMagnus/PDFiumSharp GitHub Wiki

PDFium.FPDFBitmap_GetBuffer Method

Get data buffer of a bitmap.

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

Syntax

C#

public static IntPtr FPDFBitmap_GetBuffer(
	FPDF_BITMAP bitmap
)

Parameters

 

bitmap
Type: PDFiumSharp.Types.FPDF_BITMAP
Handle to the bitmap as returned by FPDFBitmap_Create(Int32, Int32, Boolean).

Return Value

Type: IntPtr
The pointer to the first byte of the bitmap buffer.

Remarks

The stride may be more than width * number of bytes per pixel Applications can use this function to get the bitmap buffer pointer, then manipulate any color and/or alpha values for any pixels in the bitmap. The data is in BGRA format. Where the A maybe unused if alpha was not specified.

See Also

Reference

PDFium Class
PDFiumSharp Namespace
PDFiumBitmap.Scan0

⚠️ **GitHub.com Fallback** ⚠️