FGX.Canvas.Types.TfgGradient: различия между версиями
Перейти к навигации
Перейти к поиску
Admin (обсуждение | вклад) (summary) |
Admin (обсуждение | вклад) (summary) |
||
Строка 15: | Строка 15: | ||
| <code>constructor</code> || <code>Create(AOwner: [[TPersistent]])</code> | | <code>constructor</code> || <code>Create(AOwner: [[TPersistent]])</code> | ||
+ | |} | ||
+ | |||
+ | == Методы == | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | |- | ||
+ | | <code lang="Delphi">procedure</code> || <code lang="Delphi">AddPoint(const AOffset: [[Single]]; const AColor: [[TAlphaColor]])</code> | ||
+ | Добавляет точку в градиент с указанным смещением и цветом. | ||
+ | |- | ||
+ | | <code lang="Delphi">procedure</code> || <code lang="Delphi">SetPoint(const AIndex: [[Integer]]; const AOffset: [[Single]]; const AColor: [[TAlphaColor]])</code> | ||
+ | Задает смещение '' AOffset '' и цвет '' AColor '' для точки с индексом '' AIndex '' . | ||
+ | |- | ||
+ | | <code lang="Delphi">procedure</code> || <code lang="Delphi">RemovePoint(const AIndex: [[Integer]])</code> | ||
+ | Удаляет точку по указанному индексе. | ||
+ | |- | ||
+ | | <code lang="Delphi">procedure</code> || <code lang="Delphi">ResetToDefault()</code> | ||
+ | Возвращает набор точек в исходное состояние со значениями по умолчанию. | ||
+ | |- | ||
+ | | <code lang="Delphi">function</code> || <code lang="Delphi">Count()</code> | ||
+ | Количество точек в градиенте. | ||
|} | |} |
Версия 04:20, 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()
Количество точек в градиенте. |