Class TBGRALayerGradientOriginal

Unit

Declaration

type TBGRALayerGradientOriginal = class(TBGRALayerCustomOriginal)

Description

Original for rendering a gradient

Hierarchy

Overview

Fields

Protected FColorInterpolation: TBGRAColorInterpolation;
Protected FColorPositions: array of single;
Protected FColors: array of TBGRAPixel;
Protected FFocalPoint: TPointF;
Protected FFocalRadius: single;
Protected FGradientType: TGradientType;
Protected FOrigin: TPointF;
Protected FOriginBackup: TPointF;
Protected FRadius: single;
Protected FRepetition: TBGRAGradientRepetition;
Protected FUpdateCount: integer;
Protected FUpdateDiff: TBGRAGradientOriginalDiff;
Protected FXAxis: TPointF;
Protected FXAxisBackup: TPointF;
Protected FYAxis: TPointF;
Protected FYAxisBackup: TPointF;

Methods

Public constructor Create; override;
Public destructor Destroy; override;
Public function AddToSVGDefs(const AMatrix: TAffineMatrix; ADefs: TSVGDefine): TObject;
Public class function CanConvertToSVG: boolean; override;
Public function ConvertToSVG(const AMatrix: TAffineMatrix; out AOffset: TPoint): TObject; override;
Public function CreateScanner(AMatrix: TAffineMatrix; ADraft: boolean = false): TBGRACustomScanner;
Public function Equals(Obj: TObject): boolean; override;
Public function GetRenderBounds(ADestRect: TRect; AMatrix: TAffineMatrix): TRect; override;
Public function IsInfiniteSurface: boolean; override;
Public class function StorageClassName: RawByteString; override;
Protected function GetAverageColor: TBGRAPixel;
Protected function GetComputedFocalPoint: TPointF;
Protected function GetComputedFocalRadius: single;
Protected function GetComputedRadius: single;
Protected function GetComputedYAxis: TPointF;
Public procedure ApplyOpacity(AOpacity: byte);
Public procedure AssignExceptGeometry(AOther: TBGRALayerGradientOriginal);
Public procedure ConfigureEditor(AEditor: TBGRAOriginalEditor); override;
Public procedure FitGeometry(const ABox: TAffineBox);
Public procedure LoadFromStorage(AStorage: TBGRACustomOriginalStorage); override;
Public procedure Render(ADest: TBGRABitmap; AMatrix: TAffineMatrix; ADraft: boolean; ADrawMode: TDrawMode); overload;
Public procedure Render(ADest: TBGRABitmap; AMatrix: TAffineMatrix; ADraft: boolean); overload; override;
Public procedure SaveToStorage(AStorage: TBGRACustomOriginalStorage); override;
Public procedure SetColors(AStartColor, AEndColor: TBGRAPixel);
Public procedure Transform(AMatrix: TAffineMatrix);
Protected procedure BeginUpdate;
Protected procedure EndUpdate;
Protected procedure NotifyChangeWithoutDiff;
Protected procedure OnMoveFocalPoint(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);
Protected procedure OnMoveFocalRadius(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);
Protected procedure OnMoveOrigin(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);
Protected procedure OnMoveXAxis(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);
Protected procedure OnMoveXAxisNeg(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);
Protected procedure OnMoveYAxis(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);
Protected procedure OnStartMove(ASender: TObject; AIndex: integer; AShift: TShiftState);

Properties

Public property AverageColor: TBGRAPixel read GetAverageColor;
Public property Color[AIndex: integer]: TBGRAPixel read GetColorByIndex write SetColorByIndex;
Public property ColorCount: integer read GetColorCount write SetColorCount;
Public property ColorInterpolation: TBGRAColorInterpolation read FColorInterpolation write SetColorInterpolation;
Public property ColorPosition[AIndex: integer]: single read GetColorPositionByIndex write SetColorPositionByIndex;
Public property ComputedFocalPoint: TPointF read GetComputedFocalPoint;
Public property ComputedFocalRadius: single read GetComputedFocalRadius;
Public property ComputedRadius: single read GetComputedRadius;
Public property ComputedYAxis: TPointF read GetComputedYAxis;
Public property EndColor: TBGRAPixel read GetEndColor write SetEndColor;
Public property FocalPoint: TPointF read FFocalPoint write SetFocalPoint;
Public property FocalRadius: Single read FFocalRadius write SetFocalRadius;
Public property GradientType: TGradientType read FGradientType write SetGradientType;
Public property IsOpaque: boolean read GetIsOpaque;
Public property Origin: TPointF read FOrigin write SetOrigin;
Public property Radius: Single read FRadius write SetRadius;
Public property Repetition: TBGRAGradientRepetition read FRepetition write SetRepetition;
Public property StartColor: TBGRAPixel read GetStartColor write SetStartColor;
Public property XAxis: TPointF read FXAxis write SetXAxis;
Public property YAxis: TPointF read FYAxis write SetYAxis;

Description

Fields

Protected FColorInterpolation: TBGRAColorInterpolation;

This item has no description.

Protected FColorPositions: array of single;

This item has no description.

Protected FColors: array of TBGRAPixel;

This item has no description.

Protected FFocalPoint: TPointF;

This item has no description.

Protected FFocalRadius: single;

This item has no description.

Protected FGradientType: TGradientType;

This item has no description.

Protected FOrigin: TPointF;

This item has no description.

Protected FOriginBackup: TPointF;

This item has no description.

Protected FRadius: single;

This item has no description.

Protected FRepetition: TBGRAGradientRepetition;

This item has no description.

Protected FUpdateCount: integer;

This item has no description.

Protected FUpdateDiff: TBGRAGradientOriginalDiff;

This item has no description.

Protected FXAxis: TPointF;

This item has no description.

Protected FXAxisBackup: TPointF;

This item has no description.

Protected FYAxis: TPointF;

This item has no description.

Protected FYAxisBackup: TPointF;

This item has no description.

Methods

Public constructor Create; override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function AddToSVGDefs(const AMatrix: TAffineMatrix; ADefs: TSVGDefine): TObject;

This item has no description.

Public class function CanConvertToSVG: boolean; override;

This item has no description.

Public function ConvertToSVG(const AMatrix: TAffineMatrix; out AOffset: TPoint): TObject; override;

This item has no description.

Public function CreateScanner(AMatrix: TAffineMatrix; ADraft: boolean = false): TBGRACustomScanner;

This item has no description.

Public function Equals(Obj: TObject): boolean; override;

This item has no description.

Public function GetRenderBounds(ADestRect: TRect; AMatrix: TAffineMatrix): TRect; override;

This item has no description.

Public function IsInfiniteSurface: boolean; override;

This item has no description.

Public class function StorageClassName: RawByteString; override;

This item has no description.

Protected function GetAverageColor: TBGRAPixel;

This item has no description.

Protected function GetComputedFocalPoint: TPointF;

This item has no description.

Protected function GetComputedFocalRadius: single;

This item has no description.

Protected function GetComputedRadius: single;

This item has no description.

Protected function GetComputedYAxis: TPointF;

This item has no description.

Public procedure ApplyOpacity(AOpacity: byte);

This item has no description.

Public procedure AssignExceptGeometry(AOther: TBGRALayerGradientOriginal);

This item has no description.

Public procedure ConfigureEditor(AEditor: TBGRAOriginalEditor); override;

This item has no description.

Public procedure FitGeometry(const ABox: TAffineBox);

This item has no description.

Public procedure LoadFromStorage(AStorage: TBGRACustomOriginalStorage); override;

This item has no description.

Public procedure Render(ADest: TBGRABitmap; AMatrix: TAffineMatrix; ADraft: boolean; ADrawMode: TDrawMode); overload;

This item has no description.

Public procedure Render(ADest: TBGRABitmap; AMatrix: TAffineMatrix; ADraft: boolean); overload; override;

This item has no description. Showing description inherited from TBGRALayerCustomOriginal.Render.

one of the two Render functions must be overriden

Public procedure SaveToStorage(AStorage: TBGRACustomOriginalStorage); override;

This item has no description.

Public procedure SetColors(AStartColor, AEndColor: TBGRAPixel);

This item has no description.

Public procedure Transform(AMatrix: TAffineMatrix);

This item has no description.

Protected procedure BeginUpdate;

This item has no description.

Protected procedure EndUpdate;

This item has no description.

Protected procedure NotifyChangeWithoutDiff;

This item has no description.

Protected procedure OnMoveFocalPoint(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);

This item has no description.

Protected procedure OnMoveFocalRadius(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);

This item has no description.

Protected procedure OnMoveOrigin(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);

This item has no description.

Protected procedure OnMoveXAxis(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);

This item has no description.

Protected procedure OnMoveXAxisNeg(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);

This item has no description.

Protected procedure OnMoveYAxis(ASender: TObject; APrevCoord, ANewCoord: TPointF; AShift: TShiftState);

This item has no description.

Protected procedure OnStartMove(ASender: TObject; AIndex: integer; AShift: TShiftState);

This item has no description.

Properties

Public property AverageColor: TBGRAPixel read GetAverageColor;

This item has no description.

Public property Color[AIndex: integer]: TBGRAPixel read GetColorByIndex write SetColorByIndex;

This item has no description.

Public property ColorCount: integer read GetColorCount write SetColorCount;

This item has no description.

Public property ColorInterpolation: TBGRAColorInterpolation read FColorInterpolation write SetColorInterpolation;

default 0

Public property ColorPosition[AIndex: integer]: single read GetColorPositionByIndex write SetColorPositionByIndex;

This item has no description.

Public property ComputedFocalPoint: TPointF read GetComputedFocalPoint;

This item has no description.

Public property ComputedFocalRadius: single read GetComputedFocalRadius;

This item has no description.

Public property ComputedRadius: single read GetComputedRadius;

This item has no description.

Public property ComputedYAxis: TPointF read GetComputedYAxis;

This item has no description.

Public property EndColor: TBGRAPixel read GetEndColor write SetEndColor;

This item has no description.

Public property FocalPoint: TPointF read FFocalPoint write SetFocalPoint;

This item has no description.

Public property FocalRadius: Single read FFocalRadius write SetFocalRadius;

default 1

Public property GradientType: TGradientType read FGradientType write SetGradientType;

This item has no description.

Public property IsOpaque: boolean read GetIsOpaque;

This item has no description.

Public property Origin: TPointF read FOrigin write SetOrigin;

default gtLinear

Public property Radius: Single read FRadius write SetRadius;

default Origin

Public property Repetition: TBGRAGradientRepetition read FRepetition write SetRepetition;

This item has no description.

Public property StartColor: TBGRAPixel read GetStartColor write SetStartColor;

This item has no description.

Public property XAxis: TPointF read FXAxis write SetXAxis;

This item has no description.

Public property YAxis: TPointF read FYAxis write SetYAxis;

This item has no description.