Click or drag to resize

PdfiumFPDFBitmap_FillRect Method

Fills the rectangular area in the bitmap specified by a pair of coordinates, width and height.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static void FPDFBitmap_FillRect(
	IntPtr bitmap,
	int left,
	int top,
	int width,
	int height,
	int color
)

Parameters

bitmap  IntPtr
A handle to the device independent bitmap.
left  Int32
The left side position. Starting from 0 at the left-most pixel.
top  Int32
The top side position. Starting from 0 at the top-most scan line.
width  Int32
Number of pixels to be filled in each scan line
height  Int32
Number of scan lines to be filled.
color  Int32
A 32-bit value specifing the color, in 8888 ARGB format.
Remarks

This function set the color and (optionally) alpha value in specified region of the bitmap.

Note  Note
If 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 alpha.

If alpha channel is not used, the "alpha" parameter is ignored.

See Also