Click or drag to resize

PdfBitmapExtensionFillRect Method

Fill a rectangle area in an PdfBitmap specified by a Rectangle structure.

Namespace: Patagames.Pdf.Net
Assembly: Patagames.Pdf.Gdi (in Patagames.Pdf.Gdi.dll) Version: 5.1.3
Syntax
public static void FillRect(
	this PdfBitmap bitmap,
	Rectangle rect,
	FS_COLOR color
)

Parameters

bitmap  PdfBitmap
The PdfBitmap.
rect  Rectangle
A Rectangle structure that represents the rectangle to fill.
color  FS_COLOR
A FS_COLOR structure that represents the color.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PdfBitmap. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

This method 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