Class TBGRAGradientScanner
Unit
Declaration
type TBGRAGradientScanner = class(TBGRACustomScanner)
Description
Scanner that renders a gradient
Hierarchy
- IInterface
- IBGRAScanner
- TBGRACustomScanner
- TBGRAGradientScanner
Overview
Fields
FAverageColor: TBGRAPixel; |
|
FAverageExpandedColor: TExpandedPixel; |
|
FDir1: TPointF; |
|
FDir2: TPointF; |
|
FFlipGradient: boolean; |
|
FFocalDirection: TPointF; |
|
FFocalDistance: single; |
|
FFocalNormal: TPointF; |
|
FFocalRadius: single; |
|
FGetGradientColor: TBGRAGradientGetColorAtFloatFunc; |
|
FGetGradientExpandedColor: TBGRAGradientGetExpandedColorAtFloatFunc; |
|
FGradient: TBGRACustomGradient; |
|
FGradientOwner: boolean; |
|
FGradientType: TGradientType; |
|
FHiddenTransform: TAffineMatrix; |
|
FHorizColor: TBGRAPixel; |
|
FHorizExpandedColor: TExpandedPixel; |
|
FIsAverage: boolean; |
|
FMatrix: TAffineMatrix; |
|
FOrigin: TPointF; |
|
FPosition: TPointF; |
|
FRadialDeltaSign: single; |
|
FRadialDenominator: single; |
|
FRadius: single; |
|
FRelativeFocal: TPointF; |
|
FRepeatHoriz: boolean; |
|
FScanAtFunc: TBGRAGradientScannerInternalScanAtFunc; |
|
FScanNextFunc: TBGRAGradientScannerInternalScanNextFunc; |
|
FSinus: Boolean; |
|
FTransform: TAffineMatrix; |
|
maxW1: single; |
|
maxW2: single; |
Methods
constructor Create(c1, c2: TBGRAPixel; AGradientType: TGradientType; AOrigin, d1, d2: TPointF; gammaColorCorrection: boolean = True; Sinus: Boolean=False); overload; |
|
constructor Create(c1, c2: TBGRAPixel; AGradientType: TGradientType; AOrigin, d1: TPointF; gammaColorCorrection: boolean = True; Sinus: Boolean=False); overload; |
|
constructor Create(gradient: TBGRACustomGradient; AGradientType: TGradientType; AOrigin, d1, d2: TPointF; Sinus: Boolean=False; AGradientOwner: Boolean=False); overload; |
|
constructor Create(gradient: TBGRACustomGradient; AGradientType: TGradientType; AOrigin, d1: TPointF; Sinus: Boolean=False; AGradientOwner: Boolean=False); overload; |
|
constructor Create(AGradientType: TGradientType; AOrigin, d1, d2: TPointF); overload; |
|
constructor Create(AGradientType: TGradientType; AOrigin, d1: TPointF); overload; |
|
constructor Create(AOrigin: TPointF; ARadius: single; AFocal: TPointF; AFocalRadius: single); overload; |
|
constructor Create(AOrigin, d1, d2, AFocal: TPointF; ARadiusRatio: single = 1; AFocalRadiusRatio: single = 0); overload; |
|
constructor Create(gradient: TBGRACustomGradient; AOrigin: TPointF; ARadius: single; AFocal: TPointF; AFocalRadius: single; AGradientOwner: Boolean=False); overload; |
|
destructor Destroy; override; |
|
function IsScanPutPixelsDefined: boolean; override; |
|
function ScanAt(X, Y: Single): TBGRAPixel; override; |
|
function ScanAtExpanded(X, Y: Single): TExpandedPixel; override; |
|
function ScanNextExpandedPixel: TExpandedPixel; override; |
|
function ScanNextPixel: TBGRAPixel; override; |
|
function ComputeRadialFocal(const p: TPointF): single; |
|
function GetGradientColor(a: single): TBGRAPixel; |
|
function GetGradientColorFlipped(a: single): TBGRAPixel; |
|
function GetGradientColorSinus(a: single): TBGRAPixel; |
|
function GetGradientExpandedColor(a: single): TExpandedPixel; |
|
function GetGradientExpandedColorFlipped(a: single): TExpandedPixel; |
|
function GetGradientExpandedColorSinus(a: single): TExpandedPixel; |
|
function ScanAtAngular(const p: TPointF): single; |
|
function ScanAtDiamond(const p: TPointF): single; |
|
function ScanAtLinear(const p: TPointF): single; |
|
function ScanAtRadial(const p: TPointF): single; |
|
function ScanAtRadial2(const p: TPointF): single; |
|
function ScanAtRadialFocal(const p: TPointF): single; |
|
function ScanAtReflected(const p: TPointF): single; |
|
function ScanNextAngular: single; |
|
function ScanNextDiamond: single; |
|
function ScanNextExpandedInline: TExpandedPixel; inline; |
|
function ScanNextInline: TBGRAPixel; inline; |
|
function ScanNextLinear: single; |
|
function ScanNextRadial: single; |
|
function ScanNextRadial2: single; |
|
function ScanNextRadialFocal: single; |
|
function ScanNextReflected: single; |
|
procedure ScanMoveTo(X, Y: Integer); override; |
|
procedure ScanPutPixels(pdest: PBGRAPixel; count: integer; mode: TDrawMode); override; |
|
procedure ScanSkipPixels(ACount: integer); override; |
|
procedure SetGradient(AGradient: TBGRACustomGradient; AOwner: boolean); overload; |
|
procedure SetGradient(c1,c2: TBGRAPixel; AGammaCorrection: boolean = true); overload; |
|
procedure Init(AGradientType: TGradientType; AOrigin, d1, d2: TPointF; ATransform: TAffineMatrix; Sinus: Boolean=False); overload; |
|
procedure Init(AOrigin: TPointF; ARadius: single; AFocal: TPointF; AFocalRadius: single; ATransform: TAffineMatrix; AHiddenTransform: TAffineMatrix); overload; |
|
procedure Init(AGradientType: TGradientType; AOrigin, d1: TPointF; ATransform: TAffineMatrix; Sinus: Boolean=False); overload; |
|
procedure InitGradient; |
|
procedure InitGradientType; |
|
procedure InitTransform; |
|
procedure SetFlipGradient(AValue: boolean); |
|
procedure SetSinus(AValue: boolean); |
|
procedure SetTransform(AValue: TAffineMatrix); |
|
procedure UpdateGetGradientColorFunctions; |
Properties
property FlipGradient: boolean read FFlipGradient write SetFlipGradient; |
|
property Gradient: TBGRACustomGradient read FGradient; |
|
property Sinus: boolean Read FSinus write SetSinus; |
|
property Transform: TAffineMatrix read FTransform write SetTransform; |
Description
Fields
FAverageColor: TBGRAPixel; |
|
This item has no description. |
FAverageExpandedColor: TExpandedPixel; |
|
This item has no description. |
FDir1: TPointF; |
|
This item has no description. |
FDir2: TPointF; |
|
This item has no description. |
FFlipGradient: boolean; |
|
This item has no description. |
FFocalDirection: TPointF; |
|
This item has no description. |
FFocalDistance: single; |
|
This item has no description. |
FFocalNormal: TPointF; |
|
This item has no description. |
FFocalRadius: single; |
|
This item has no description. |
FGetGradientColor: TBGRAGradientGetColorAtFloatFunc; |
|
This item has no description. |
FGetGradientExpandedColor: TBGRAGradientGetExpandedColorAtFloatFunc; |
|
This item has no description. |
FGradient: TBGRACustomGradient; |
|
This item has no description. |
FGradientOwner: boolean; |
|
This item has no description. |
FGradientType: TGradientType; |
|
This item has no description. |
FHiddenTransform: TAffineMatrix; |
|
This item has no description. |
FHorizColor: TBGRAPixel; |
|
This item has no description. |
FHorizExpandedColor: TExpandedPixel; |
|
This item has no description. |
FIsAverage: boolean; |
|
This item has no description. |
FMatrix: TAffineMatrix; |
|
This item has no description. |
FOrigin: TPointF; |
|
This item has no description. |
FPosition: TPointF; |
|
This item has no description. |
FRadialDeltaSign: single; |
|
This item has no description. |
FRadialDenominator: single; |
|
This item has no description. |
FRadius: single; |
|
This item has no description. |
FRelativeFocal: TPointF; |
|
This item has no description. |
FRepeatHoriz: boolean; |
|
This item has no description. |
FScanAtFunc: TBGRAGradientScannerInternalScanAtFunc; |
|
This item has no description. |
FScanNextFunc: TBGRAGradientScannerInternalScanNextFunc; |
|
This item has no description. |
FSinus: Boolean; |
|
This item has no description. |
FTransform: TAffineMatrix; |
|
This item has no description. |
maxW1: single; |
|
This item has no description. |
maxW2: single; |
|
This item has no description. |
Methods
constructor Create(c1, c2: TBGRAPixel; AGradientType: TGradientType; AOrigin, d1, d2: TPointF; gammaColorCorrection: boolean = True; Sinus: Boolean=False); overload; |
|
This item has no description. |
constructor Create(c1, c2: TBGRAPixel; AGradientType: TGradientType; AOrigin, d1: TPointF; gammaColorCorrection: boolean = True; Sinus: Boolean=False); overload; |
|
This item has no description. |
constructor Create(gradient: TBGRACustomGradient; AGradientType: TGradientType; AOrigin, d1, d2: TPointF; Sinus: Boolean=False; AGradientOwner: Boolean=False); overload; |
|
This item has no description. |
constructor Create(gradient: TBGRACustomGradient; AGradientType: TGradientType; AOrigin, d1: TPointF; Sinus: Boolean=False; AGradientOwner: Boolean=False); overload; |
|
This item has no description. |
constructor Create(AGradientType: TGradientType; AOrigin, d1, d2: TPointF); overload; |
|
This item has no description. |
constructor Create(AGradientType: TGradientType; AOrigin, d1: TPointF); overload; |
|
This item has no description. |
constructor Create(AOrigin: TPointF; ARadius: single; AFocal: TPointF; AFocalRadius: single); overload; |
|
This item has no description. |
constructor Create(AOrigin, d1, d2, AFocal: TPointF; ARadiusRatio: single = 1; AFocalRadiusRatio: single = 0); overload; |
|
This item has no description. |
constructor Create(gradient: TBGRACustomGradient; AOrigin: TPointF; ARadius: single; AFocal: TPointF; AFocalRadius: single; AGradientOwner: Boolean=False); overload; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
function IsScanPutPixelsDefined: boolean; override; |
|
This item has no description. |
function ScanAt(X, Y: Single): TBGRAPixel; override; |
|
This item has no description. |
function ScanAtExpanded(X, Y: Single): TExpandedPixel; override; |
|
This item has no description. |
function ScanNextExpandedPixel: TExpandedPixel; override; |
|
This item has no description. |
function ScanNextPixel: TBGRAPixel; override; |
|
This item has no description. |
function ComputeRadialFocal(const p: TPointF): single; |
|
This item has no description. |
function GetGradientColor(a: single): TBGRAPixel; |
|
This item has no description. |
function GetGradientColorFlipped(a: single): TBGRAPixel; |
|
This item has no description. |
function GetGradientColorSinus(a: single): TBGRAPixel; |
|
This item has no description. |
function GetGradientExpandedColor(a: single): TExpandedPixel; |
|
This item has no description. |
function GetGradientExpandedColorFlipped(a: single): TExpandedPixel; |
|
This item has no description. |
function GetGradientExpandedColorSinus(a: single): TExpandedPixel; |
|
This item has no description. |
function ScanAtAngular(const p: TPointF): single; |
|
This item has no description. |
function ScanAtDiamond(const p: TPointF): single; |
|
This item has no description. |
function ScanAtLinear(const p: TPointF): single; |
|
This item has no description. |
function ScanAtRadial(const p: TPointF): single; |
|
This item has no description. |
function ScanAtRadial2(const p: TPointF): single; |
|
This item has no description. |
function ScanAtRadialFocal(const p: TPointF): single; |
|
This item has no description. |
function ScanAtReflected(const p: TPointF): single; |
|
This item has no description. |
function ScanNextAngular: single; |
|
This item has no description. |
function ScanNextDiamond: single; |
|
This item has no description. |
function ScanNextExpandedInline: TExpandedPixel; inline; |
|
This item has no description. |
function ScanNextInline: TBGRAPixel; inline; |
|
This item has no description. |
function ScanNextLinear: single; |
|
This item has no description. |
function ScanNextRadial: single; |
|
This item has no description. |
function ScanNextRadial2: single; |
|
This item has no description. |
function ScanNextRadialFocal: single; |
|
This item has no description. |
function ScanNextReflected: single; |
|
This item has no description. |
procedure ScanMoveTo(X, Y: Integer); override; |
|
This item has no description. |
procedure ScanPutPixels(pdest: PBGRAPixel; count: integer; mode: TDrawMode); override; |
|
This item has no description. |
procedure ScanSkipPixels(ACount: integer); override; |
|
This item has no description. |
procedure SetGradient(AGradient: TBGRACustomGradient; AOwner: boolean); overload; |
|
This item has no description. |
procedure SetGradient(c1,c2: TBGRAPixel; AGammaCorrection: boolean = true); overload; |
|
This item has no description. |
procedure Init(AGradientType: TGradientType; AOrigin, d1, d2: TPointF; ATransform: TAffineMatrix; Sinus: Boolean=False); overload; |
|
This item has no description. |
procedure Init(AOrigin: TPointF; ARadius: single; AFocal: TPointF; AFocalRadius: single; ATransform: TAffineMatrix; AHiddenTransform: TAffineMatrix); overload; |
|
This item has no description. |
procedure Init(AGradientType: TGradientType; AOrigin, d1: TPointF; ATransform: TAffineMatrix; Sinus: Boolean=False); overload; |
|
This item has no description. |
procedure InitGradient; |
|
This item has no description. |
procedure InitGradientType; |
|
This item has no description. |
procedure InitTransform; |
|
This item has no description. |
procedure SetFlipGradient(AValue: boolean); |
|
This item has no description. |
procedure SetSinus(AValue: boolean); |
|
This item has no description. |
procedure SetTransform(AValue: TAffineMatrix); |
|
This item has no description. |
procedure UpdateGetGradientColorFunctions; |
|
This item has no description. |
Properties
property FlipGradient: boolean read FFlipGradient write SetFlipGradient; |
|
This item has no description. |
property Gradient: TBGRACustomGradient read FGradient; |
|
This item has no description. |
property Sinus: boolean Read FSinus write SetSinus; |
|
This item has no description. |
property Transform: TAffineMatrix read FTransform write SetTransform; |
|
This item has no description. |