TRSPathData.AddRectangle(TRSRect,Single,Single,TRSCorners,TRSCornerType) Method |
Scroll Prev Top Next More |
Adds a rectangle with customized shapes of corners to the current TRSPathData.
AddRectangle splits the rectangle in simple figures and adds the points needed to represent them to the Points array. The added points have appropriate types to represent the figures.
To find the end point of the TRSPathData, call the LastPoint method.
Namespace: RSGraphics
Delphi |
public |
Parameters
ARect
Type: System.Void
Rectangle to be added
XRadius
Type: Single
Distance from a corner to the start point of the corner customization on horizontal sides. The maximum value of XRadius is half of the rectangle's width.
YRadius
Type: Single
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
Corners to apply the customization to. To apply the customization to all corners, use the AllCorners constant.
ACornerType
Type: TRSCornerType
TRSCornerType type of corner shapes' customization. It is an optional parameter with a default value of ctRound.