FGX.Canvas.TfgCanvas: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
(Метка: замена)
Строка 6: Строка 6:
  
 
<code>TfgCanvas = class (TObject)</code>
 
<code>TfgCanvas = class (TObject)</code>
 
== Конструкторы ==
 
 
{| class="wikitable sortable"
 
|-
 
| constructor || Create()
 
 
|}
 
 
== Методы ==
 
 
{| class="wikitable sortable"
 
|-
 
| procedure || AfterConstruction()
 
 
|-
 
| procedure || DrawPoint(const APoint: TPointF)
 
Рисует точку в логических координатах '' APoint '' .
 
|-
 
| procedure || DrawPoint(const X: Single, const Y: Single)
 
Рисует точку в логических координатах '' (AX, AY) '' .
 
|-
 
| procedure || DrawPoints(const APoints: TfgPoints)
 
Рисует набор указанных точек
 
|-
 
| procedure || DrawLine(const APoint1: TPointF, const APoint2: TPointF)
 
Рисует линию из точки '' APoint1 '' в '' APoint2 '' указанной кистью
 
|-
 
| procedure || DrawLine(const X1: Single, const Y1: Single, const X2: Single, const Y2: Single)
 
 
|-
 
| procedure || DrawLines(const APoints: TfgPoints)
 
Рисует цепочку линий. Соединяет переданные точки '' APoints '' по очереди.
 
|-
 
| procedure || DrawRect(const ARect: TRectF)
 
 
|-
 
| procedure || DrawRect(const ALeft: Single, const ATop: Single, const ARight: Single, const ABottom: Single)
 
 
|-
 
| procedure || DrawCircle(const ACenter: TPointF, const ARadius: Single)
 
Рисует окружность с центром в '' ACenter '' и радиусом '' ARadius '' .
 
|-
 
| procedure || DrawCircle(const CenterX: Single, const CenterY: Single, const ARadius: Single)
 
Рисует окружность с центром в '' (AX, AY) '' и радиусом '' ARadius '' .
 
|-
 
| procedure || DrawArc(const ACenter: TPointF, const ARadiusX: Single, const ARadiusY: Single, const StartAngle: Single, const SweepAngle: Single)
 
 
|-
 
| procedure || DrawArc(const ARect: TRectF, const StartAngle: Single, const SweepAngle: Single)
 
 
|-
 
| procedure || DrawEllipse(const ARect: TRectF)
 
 
|-
 
| procedure || DrawEllipse(const ALeft: Single, const ATop: Single, const ARight: Single, const ABottom: Single)
 
 
|-
 
| procedure || DrawEllipse(const ACenter: TPointF, const ARadiusX: Single, const ARadiusY: Single)
 
 
|-
 
| procedure || DrawBitmap(const ABitmap: TfgBitmap, const ADestRect: TRectF)
 
 
|-
 
| procedure || DrawBitmap(const ABitmap: TfgBitmap, const ASourceRect: TRect, const ADestRect: TRectF)
 
 
|-
 
| procedure || DrawBitmap(const ABitmap: TfgBitmap, const ALeft: Single, const ATop: Single)
 
 
|-
 
| procedure || DrawPath(const APath: TfgPath)
 
 
|-
 
| procedure || FillColor(const AColor: TAlphaColor)
 
Закрашивает холст указанным цветом
 
|-
 
| procedure || FillPolygon(const APoints: TfgPoints)
 
Рисует цепочку линий. Соединяет переданные точки '' APoints '' по очереди.
 
|-
 
| procedure || FillRect(const ARect: TRectF)
 
Закрашивает прямоугольник указанным кистью
 
|-
 
| procedure || FillRect(const ALeft: Single, const ATop: Single, const ARight: Single, const ABottom: Single)
 
 
|-
 
| procedure || FillRoundRect(const ARect: TRectF, const RX: Single, const RY: Single)
 
Закрашивает прямоугольник со скругленными углами и указанным кистью
 
|-
 
| procedure || FillRoundRect(const ALeft: Single, const ATop: Single, const ARight: Single, const ABottom: Single, const RX: Single, const RY: Single)
 
 
|-
 
| procedure || FillCircle(const ACenter: TPointF, const ARadius: Single)
 
 
|-
 
| procedure || FillCircle(const ACenterX: Single, const ACenterY: Single, const ARadius: Single)
 
 
|-
 
| procedure || FillEllipse(const ARect: TRectF)
 
 
|-
 
| procedure || FillEllipse(const ALeft: Single, const ATop: Single, const ARight: Single, const ABottom: Single)
 
 
|-
 
| procedure || FillPath(const APath: TfgPath)
 
 
|-
 
| procedure || FillText(const ARect: TRectF, const AText: string, const AWordWrap: Boolean, const AHorizontalAlign: TfgHorizontalAlignment, const AVerticalAlign: TfgVerticalAlignment)
 
 
|}
 

Версия 23:47, 9 июня 2019