Skip to content

M_PDFiumSharp_PDFium_FPDFBitmap_FillRect

ArgusMagnus edited this page Apr 4, 2017 · 3 revisions

PDFium.FPDFBitmap_FillRect Method

Fill a rectangle in a bitmap.

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

Syntax

C#

public static void FPDFBitmap_FillRect(
	FPDF_BITMAP bitmap,
	int left,
	int top,
	int width,
	int height,
	FPDF_COLOR color
)

Parameters

 

bitmap
Type: PDFiumSharp.Types.FPDF_BITMAP
The handle to the bitmap.
left
Type: System.Int32
The left position. Starting from 0 at the left-most pixel.
top
Type: System.Int32
The top position. Starting from 0 at the top-most line.
width
Type: System.Int32
Width in pixels to be filled.
height
Type: System.Int32
Height in pixels to be filled.
color
Type: PDFiumSharp.Types.FPDF_COLOR

Remarks

This function sets the color and (optionally) alpha value in the specified region of the bitmap. NOTE: If the alpha channel is used, this function does NOT composite the background with the source color, instead the background will be replaced by the source color and the alpha. If the alpha channel is not used, the alpha parameter is ignored.

See Also

Reference

PDFium Class
PDFiumSharp Namespace
PDFiumBitmap.FillRectangle(Int32, Int32, Int32, Int32, FPDF_COLOR)
PDFiumBitmap.Fill(FPDF_COLOR)

Clone this wiki locally