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

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

Версия 04:38, 10 июня 2019

Delphi

TfgCanvas = class (TObject)

Описание

Описание отсутствует.

Конструкторы

constructor
Create()

Методы

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)