TcxCustomCanvas.FillRect(TRect,TdxGPImage,PcxCanvasBasedImage) Method
Draws a filled rectangle.
#Declaration
procedure FillRect(const R: TRect; AImage: TdxGPImage; ACache: PcxCanvasBasedImage = nil); overload; virtual;
#Parameters
Name | Type |
---|---|
R | TRect |
AImage | Tdx |
ACache | Pcx |
#Remarks
Call any of the four FillRect overloaded procedure variants pass a rectangle as the R parameter to draw the filled rectangle on the canvas. The first three variants use the AColor parameter value to fill the rectangle with a solid color. The last variant fills the rectangle with an image instead of a color.
Overloaded Variant | Description |
---|---|
1 | This procedure variant accepts a TColor value (AColor) to fill the target rectangle with a single non-transparent color. |
2 | This variant accepts TColor (AColor), and alpha values (from 0 to 255, as the AAlpha parameter) to fill the target rectangle with a single transparent color. |
3 | This variant accepts a single Tdx |
4 | This Fill |
5 | This procedure variant accepts a Smart Image container (a Tdx Note The ACache optional parameter is not intended for use in your code. Only the internal Direct2D-based draw routines use this parameter. |