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

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 27: Строка 27:
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawPoint(const APoint: [[TPointF]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawPoint(const APoint: [[TPointF]])</code>
<p>Рисует точку в логических координатах <i>APoint</i> .</p>
+
<p>Рисует точку в логических координатах <i>APoint</i> .</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawPoint(const X: [[Single]]; const Y: [[Single]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawPoint(const X: [[Single]]; const Y: [[Single]])</code>
<p>Рисует точку в логических координатах <i>(AX, AY)</i> .</p>
+
<p>Рисует точку в логических координатах <i>(AX, AY)</i> .</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawPoints(const APoints: [[TfgPoints|TfgPoints]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawPoints(const APoints: [[TfgPoints|TfgPoints]])</code>
<p>Рисует набор указанных точек</p>
+
<p>Рисует набор указанных точек</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawLine(const APoint1: [[TPointF]]; const APoint2: [[TPointF]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawLine(const APoint1: [[TPointF]]; const APoint2: [[TPointF]])</code>
<p>Рисует линию из точки <i>APoint1</i> в <i>APoint2</i> указанной кистью</p>
+
<p>Рисует линию из точки <i>APoint1</i> в <i>APoint2</i> указанной кистью</p>
 
|-
 
|-
 
| <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">DrawLine(const X1: [[Single]]; const Y1: [[Single]]; const X2: [[Single]]; const Y2: [[Single]])</code>
Строка 42: Строка 42:
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawLines(const APoints: [[TfgPoints|TfgPoints]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawLines(const APoints: [[TfgPoints|TfgPoints]])</code>
<p>Рисует цепочку линий. Соединяет переданные точки <i>APoints</i> по очереди.</p>
+
<p>Рисует цепочку линий. Соединяет переданные точки <i>APoints</i> по очереди.</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawRect(const ARect: [[TRectF]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawRect(const ARect: [[TRectF]])</code>
Строка 51: Строка 51:
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawCircle(const ACenter: [[TPointF]]; const ARadius: [[Single]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawCircle(const ACenter: [[TPointF]]; const ARadius: [[Single]])</code>
<p>Рисует окружность с центром в <i>ACenter</i> и радиусом <i>ARadius</i> .</p>
+
<p>Рисует окружность с центром в <i>ACenter</i> и радиусом <i>ARadius</i> .</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawCircle(const CenterX: [[Single]]; const CenterY: [[Single]]; const ARadius: [[Single]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawCircle(const CenterX: [[Single]]; const CenterY: [[Single]]; const ARadius: [[Single]])</code>
<p>Рисует окружность с центром в <i>(AX, AY)</i> и радиусом <i>ARadius</i> .</p>
+
<p>Рисует окружность с центром в <i>(AX, AY)</i> и радиусом <i>ARadius</i> .</p>
 
|-
 
|-
 
| <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 ACenter: [[TPointF]]; const ARadiusX: [[Single]]; const ARadiusY: [[Single]]; const StartAngle: [[Single]]; const SweepAngle: [[Single]])</code>
Строка 84: Строка 84:
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillColor(const AColor: [[TAlphaColor]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillColor(const AColor: [[TAlphaColor]])</code>
<p>Закрашивает холст указанным цветом</p>
+
<p>Закрашивает холст указанным цветом</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillPolygon(const APoints: [[TfgPoints|TfgPoints]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillPolygon(const APoints: [[TfgPoints|TfgPoints]])</code>
<p>Рисует цепочку линий. Соединяет переданные точки <i>APoints</i> по очереди.</p>
+
<p>Рисует цепочку линий. Соединяет переданные точки <i>APoints</i> по очереди.</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillRect(const ARect: [[TRectF]])</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillRect(const ARect: [[TRectF]])</code>
<p>Закрашивает прямоугольник указанным кистью</p>
+
<p>Закрашивает прямоугольник указанным кистью</p>
 
|-
 
|-
 
| <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">FillRect(const ALeft: [[Single]]; const ATop: [[Single]]; const ARight: [[Single]]; const ABottom: [[Single]])</code>
Строка 96: Строка 96:
 
|-
 
|-
 
| <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 ARect: [[TRectF]]; const RX: [[Single]]; const RY: [[Single]])</code>
<p>Закрашивает прямоугольник со скругленными углами и указанным кистью</p>
+
<p>Закрашивает прямоугольник со скругленными углами и указанным кистью</p>
 
|-
 
|-
 
| <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">FillRoundRect(const ALeft: [[Single]]; const ATop: [[Single]]; const ARight: [[Single]]; const ABottom: [[Single]]; const RX: [[Single]]; const RY: [[Single]])</code>
Строка 125: Строка 125:
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Width: [[Single]]</code>
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Width: [[Single]]</code>
<p>Ширина канвы</p>
+
<p>Ширина канвы</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Height: [[Single]]</code>
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Height: [[Single]]</code>
<p>Высота канвы</p>
+
<p>Высота канвы</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Fill: [[FGX.Canvas.Types.TfgBrush|TfgBrush]]</code>
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Fill: [[FGX.Canvas.Types.TfgBrush|TfgBrush]]</code>
<p>Текущая кисть заливки.</p>
+
<p>Текущая кисть заливки.</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Stroke: [[FGX.Canvas.Types.TfgStrokeBrush|TfgStrokeBrush]]</code>
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Stroke: [[FGX.Canvas.Types.TfgStrokeBrush|TfgStrokeBrush]]</code>
<p>Текущая кисть контуров.</p>
+
<p>Текущая кисть контуров.</p>
 
|-
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Font: [[FGX.Canvas.Types.TfgFont|TfgFont]]</code>
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Font: [[FGX.Canvas.Types.TfgFont|TfgFont]]</code>
<p>Шрифт, используемый для вывода текста.</p>
+
<p>Шрифт, используемый для вывода текста.</p>
 
|}
 
|}

Версия 14:53, 8 июля 2019

Delphi

TfgCanvas = class (TObject)

TObject -> TfgCanvas

Описание

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

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

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)

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

Свойства

property
Width: Single

Ширина канвы

property
Height: Single

Высота канвы

property
Fill: TfgBrush

Текущая кисть заливки.

property
Stroke: TfgStrokeBrush

Текущая кисть контуров.

property
Font: TfgFont

Шрифт, используемый для вывода текста.