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

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 35: Строка 35:
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">Count(): [[Integer]]</code>
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <code lang="Delphi">Count(): [[Integer]]</code>
 
Количество точек в градиенте.
 
Количество точек в градиенте.
 +
|}
 +
 +
== Свойства ==
 +
 +
{| class="wikitable sortable"
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Offsets[Index]: [[Single]]</code>
 +
Возвращает смещение точки по указанному индексу.
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Colors[Index]: [[TAlphaColor]]</code>
 +
Возвращает цвет точки по указанному индексу.
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>StartColor: [[TAlphaColor]]</code>
 +
Цвет градиента в начальной точке '' StartPoint '' .
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>StartPoint: [[TPointF]]</code>
 +
Координата начальной точки градиента.
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>StopColor: [[TAlphaColor]]</code>
 +
Цвет градиента в конечной точке градиента '' StopPoint '' .
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>StopPoint: [[TPointF]]</code>
 +
Координата конечной точки градиента.
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Style: [[.TfgGradientStyle|TfgGradientStyle]]</code>
 +
Стиль градиента (Линейный, радиальный).
 
|}
 
|}

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

Delphi

TfgGradient = class (TfgPersistent)

Описание

Параметры градиента.

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

constructor
Create(AOwner: TPersistent)

Методы

procedure
AddPoint(const AOffset: Single; const AColor: TAlphaColor)

Добавляет точку в градиент с указанным смещением и цветом.

procedure
SetPoint(const AIndex: Integer; const AOffset: Single; const AColor: TAlphaColor)

Задает смещение AOffset и цвет AColor для точки с индексом AIndex .

procedure
RemovePoint(const AIndex: Integer)

Удаляет точку по указанному индексе.

procedure
ResetToDefault()

Возвращает набор точек в исходное состояние со значениями по умолчанию.

function
Count(): Integer

Количество точек в градиенте.

Свойства

property
Offsets[Index]: Single

Возвращает смещение точки по указанному индексу.

property
Colors[Index]: TAlphaColor

Возвращает цвет точки по указанному индексу.

property
StartColor: TAlphaColor

Цвет градиента в начальной точке StartPoint .

property
StartPoint: TPointF

Координата начальной точки градиента.

property
StopColor: TAlphaColor

Цвет градиента в конечной точке градиента StopPoint .

property
StopPoint: TPointF

Координата конечной точки градиента.

property
Style: TfgGradientStyle

Стиль градиента (Линейный, радиальный).