|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.
Rectangle to be added
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.
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.
Corners to apply the customization to. To apply the customization to all corners, use the AllCorners constant.
TRSCornerType type of corner shapes' customization. It is an optional parameter with a default value of ctRound.