Show: Delphi C++
Display Preferences

FMX.Graphics.TPathData.AddRectangle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddRectangle(const ARect: TRectF; const XRadius, YRadius: Single; const ACorners: TCorners;  const ACornerType: TCornerType = TCornerType.Round);

C++

void __fastcall AddRectangle(const System::Types::TRectF &ARect, const float XRadius, const float YRadius, const Fmx::Types::TCorners ACorners, const Fmx::Types::TCornerType ACornerType = (Fmx::Types::TCornerType)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TPathData

Description

Adds a rectangle with customized shapes of corners to the current TPathData.

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.

ARect specifies the rectangle to be added.

XRadius specifies the 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 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 specifies the corners to apply the customization to. To apply the customization to all corners, use the AllCorners constant.

ACornerType specifies the TCornerType type of corner shapes' customization. It is an optional parameter with a default value of Round.

DrawRectCanvas.png


See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance