Draws a rectangle with rounded corners, using the standard TRSGPPen, on the current canvas.
DrawDashRect draws the ARect rectangle with rounded corners, with the standard TRSGPPen, which has the following parameters: AColor color, Solid color pattern, Dash dashed line, and 1 pixel pen thickness.
Namespace: RSGdiPlusGraphics
Delphi |
public |
Parameters
ARect
Type: TRectF
Specifies the rectangle to be drawn.
XRadius
Type: Single
Specifies the distance from a corner to the start point of the customization, on horizontal sides. The maximum value of XRadius is half of the rectangle's width.
YRadius
Type: Single
Specifies the distance from a corner to the start point of the customization, on vertical sides. The maximum value of YRadius is half of the rectangle's height.
ACorners
Type: TRSCorners
Specifies the corners to apply the customization to. ACorners can contain a set of constants defined in the TRSCorner type: crTopLeft, crTopRight, crBottomLeft, and crBottomRight. To apply the customization to all the corners, use the AllCorners constant
AOpacity
Type: Single
Specifies the transparency of the Stroke or ABrush color.
AColor
Type: TAlphaColor
Specifies the color of the pen