TRSGPCircle defines 2D circles.
The following TRSGPCircle properties define the circle size and position:
• The bounding rectangle ShapeRect of TRSGPCircle defines the bounding square for the circle:
The length of the bounding square sides equals to Min(Width, Height) of the ShapeRect bounding rectangle.
The bounding square center coincides with the center of the bounding rectangle.
• The TRSGPCircle shape is inscribed into the obtained bounding square.
• You can use the Scale scaling factors of the TRSGPCircle object to proportionally scale circle coordinates along local coordinate axes. Scaling moves the circle and changes its size.
• You can use the rotation axis RotationCenter and rotation angle RotationAngle of the TRSGPCircle object to modify the circle shape and position.
TRSGPCircle draws the contour and fills the shape background with the Paint method.
Paint draws the contour and fills the background using the drawing pen and brush with the properties, color, and opacity defined by the Stroke and Fill properties of the TRSGPCircle object.
Namespace: RSGdiPlusCtrls
Delphi
|
type
[ComponentPlatformsAttribute(pidRS_WINDOWS_SUPPORT)]
TRSGPCircle = class(TRSGPEllipse)
end;
|
|
Name
|
Description
|
|
CreateGdiPCanvas
|
Creates a GDI+ canvas for the control. The calling routine is responsible for freeing the GDI+ canvas (Inherited from RSGdiPlusCtrls.TRSCustomTransparentGraphicControl.)
|
|
DoPaint
|
Override this method to paint the control (Overrides RSGdiPlusCtrls.TRSCustomTransparentGraphicControl.DoPaint.)
|
|
DoPainted
|
Occurs just after painting. Calls the OnPaint event (Inherited from RSGdiPlusCtrls.TRSCustomTransparentGraphicControl.)
|
|
DoPainting
|
Occurs just before painting. Calls the OnPainting event (Inherited from RSGdiPlusCtrls.TRSCustomTransparentGraphicControl.)
|
|
GetAbsoluteMatrix
|
Returns the absolute transformation matrix of the control. AbsoluteMatrix is calculated using Matrix and AbsoluteMatrix of its parent (Inherited from RSGdiPlusCtrls.TRSGPShape.)
|
|
GetMatrix
|
Returns the local transformation matrix of the control (Inherited from RSGdiPlusCtrls.TRSGPShape.)
|
|
GetOpacity
|
Returns the control opacity. (Inherited from RSGdiPlusCtrls.TRSGPShape.)
|
|
GetShapeRectForRot(TObject,TRSRect)
|
Represents method GetShapeRectForRot(TObject,TRSRect). (Inherited from RSGdiPlusCtrls.TRSGPShape.)
|
|
ObjectChanged(TObject)
|
Represents method ObjectChanged(TObject). (Inherited from RSGdiPlusCtrls.TRSGPShape.)
|
|
Paint(TRSGPCanvas,TRSGPMatrix,Single)
|
Represents method Paint(TRSGPCanvas,TRSGPMatrix,Single). (Overrides RSGdiPlusCtrls.TRSGPEllipse.Paint(TRSGPCanvas,TRSGPMatrix,Single).)
|
|
PointInObject(Integer,Integer)
|
Overloaded. Checks whether the point, specified by the absolute coordinates, belongs to the control area.
PointInObject returns True if the specified point belongs to the control area, and False otherwise.
The X and Y are the absolute coordinates (relative to the main form) of the point to be checked. The points of the control boundary specified by BoundsRect belong to the control and PointInObject returns True for them.
|
|
PointInObject(Single,Single)
|
Checks whether the point, specified by the absolute coordinates, belongs to the control area.
PointInObject returns True if the specified point belongs to the control area, and False otherwise.
The X and Y are the absolute coordinates (relative to the main form) of the point to be checked. The points of the control boundary specified by BoundsRect belong to the control and PointInObject returns True for them.
|
|
SetOpacity(Single)
|
Sets the control opacity.
Set Opacity to customize the transparency of the current control.
Opacity takes values between 0 and 1. If Opacity is 1, the control is completely opaque; if it is 0, the control is completely transparent. The values over 1 are treated as 1, and the ones under 0 are treated as 0.
Opacity applies to the control's children.
|
Top
|