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

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
(Метка: замена)
Строка 7: Строка 7:
  
 
<p class="class-inheritance"><span class="type-border">[[System.TObject|TObject]]</span> -> <span class="type-border">[[FGX.Canvas.TfgCanvas|TfgCanvas]]</span></p>
 
<p class="class-inheritance"><span class="type-border">[[System.TObject|TObject]]</span> -> <span class="type-border">[[FGX.Canvas.TfgCanvas|TfgCanvas]]</span></p>
 
== Описание ==
 
 
<span style="color:gray">Описание отсутствует.</span>
 
 
== Конструкторы ==
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">constructor</syntaxhighlight> || <code>Create()</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|}
 
 
== Методы ==
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">AfterConstruction()</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawPoint(const APoint: [[TPointF]])</code>
 
<p>Рисует точку в логических координатах <i>APoint</i> .</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawPoint(const X: [[Single]]; const Y: [[Single]])</code>
 
<p>Рисует точку в логических координатах <i>(AX, AY)</i> .</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawPoints(const APoints: [[TfgPoints|TfgPoints]])</code>
 
<p>Рисует набор указанных точек</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawLine(const APoint1: [[TPointF]]; const APoint2: [[TPointF]])</code>
 
<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>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawLines(const APoints: [[TfgPoints|TfgPoints]])</code>
 
<p>Рисует цепочку линий. Соединяет переданные точки <i>APoints</i> по очереди.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawRect(const ARect: [[TRectF]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawRect(const ALeft: [[Single]]; const ATop: [[Single]]; const ARight: [[Single]]; const ABottom: [[Single]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawCircle(const ACenter: [[TPointF]]; const ARadius: [[Single]])</code>
 
<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>
 
<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>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawArc(const ARect: [[TRectF]]; const StartAngle: [[Single]]; const SweepAngle: [[Single]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawEllipse(const ARect: [[TRectF]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawEllipse(const ALeft: [[Single]]; const ATop: [[Single]]; const ARight: [[Single]]; const ABottom: [[Single]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawEllipse(const ACenter: [[TPointF]]; const ARadiusX: [[Single]]; const ARadiusY: [[Single]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawBitmap(const ABitmap: [[FGX.Canvas.TfgBitmap|TfgBitmap]]; const ADestRect: [[TRectF]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawBitmap(const ABitmap: [[FGX.Canvas.TfgBitmap|TfgBitmap]]; const ASourceRect: [[TRect]]; const ADestRect: [[TRectF]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawBitmap(const ABitmap: [[FGX.Canvas.TfgBitmap|TfgBitmap]]; const ALeft: [[Single]]; const ATop: [[Single]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">DrawPath(const APath: [[FGX.Canvas.Types.TfgPath|TfgPath]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillColor(const AColor: [[TAlphaColor]])</code>
 
<p>Закрашивает холст указанным цветом</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillPolygon(const APoints: [[TfgPoints|TfgPoints]])</code>
 
<p>Рисует цепочку линий. Соединяет переданные точки <i>APoints</i> по очереди.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillRect(const ARect: [[TRectF]])</code>
 
<p>Закрашивает прямоугольник указанным кистью</p>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillRect(const ALeft: [[Single]]; const ATop: [[Single]]; const ARight: [[Single]]; const ABottom: [[Single]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillRoundRect(const ARect: [[TRectF]]; const RX: [[Single]]; const RY: [[Single]])</code>
 
<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>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillCircle(const ACenter: [[TPointF]]; const ARadius: [[Single]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillCircle(const ACenterX: [[Single]]; const ACenterY: [[Single]]; const ARadius: [[Single]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillEllipse(const ARect: [[TRectF]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillEllipse(const ALeft: [[Single]]; const ATop: [[Single]]; const ARight: [[Single]]; const ABottom: [[Single]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillPath(const APath: [[FGX.Canvas.Types.TfgPath|TfgPath]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">FillText(const ARect: [[TRectF]]; const AText: [[string]]; const AWordWrap: [[Boolean]]; const AHorizontalAlign: [[FGX.Text.TfgHorizontalAlignment|TfgHorizontalAlignment]]; const AVerticalAlign: [[FGX.Text.TfgVerticalAlignment|TfgVerticalAlignment]])</code>
 
<span style="color:gray">Описание отсутствует.</span>
 
|}
 
 
== Свойства ==
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Width: [[Single]]</code>
 
<p>Ширина канвы</p>
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Height: [[Single]]</code>
 
<p>Высота канвы</p>
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Fill: [[FGX.Canvas.Types.TfgBrush|TfgBrush]]</code>
 
<p>Текущая кисть заливки.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Stroke: [[FGX.Canvas.Types.TfgStrokeBrush|TfgStrokeBrush]]</code>
 
<p>Текущая кисть контуров.</p>
 
|-
 
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Font: [[FGX.Canvas.Types.TfgFont|TfgFont]]</code>
 
<p>Шрифт, используемый для вывода текста.</p>
 
|}
 

Версия 18:00, 29 июня 2019