 | PdfBitmapExtensionFillRect Method |
Fill a rectangle area in an PdfBitmap specified by a
Rectangle structure.
Namespace: Patagames.Pdf.NetAssembly: Patagames.Pdf.Gdi (in Patagames.Pdf.Gdi.dll) Version: 5.1.3
Syntaxpublic static void FillRect(
this PdfBitmap bitmap,
Rectangle rect,
FS_COLOR color
)
<ExtensionAttribute>
Public Shared Sub FillRect (
bitmap As PdfBitmap,
rect As Rectangle,
color As FS_COLOR
)
public:
[ExtensionAttribute]
static void FillRect(
PdfBitmap^ bitmap,
Rectangle rect,
FS_COLOR color
)
[<ExtensionAttribute>]
static member FillRect :
bitmap : PdfBitmap *
rect : Rectangle *
color : FS_COLOR -> unit /** @attribute ExtensionAttribute */
public static void FillRect(
PdfBitmap bitmap,
Rectangle rect,
FS_COLOR color
)
Patagames.Pdf.Net.PdfBitmapExtension.FillRect = function(bitmap, rect, 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).
RemarksThis method set the color and (optionally) alpha value in specified region of the bitmap.
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