Class TBGRACustomTextEffect
Unit
Declaration
type TBGRACustomTextEffect = class(TObject)
Description
Computes text effects based on a grayscale mask.
This class computes at the pixel level the following effects: drop shadow, outline and multi-color text (on color per letter)
Hierarchy
- TObject
- TBGRACustomTextEffect
Overview
Fields
FOffset: TPoint; |
|
FOutlineMask: TGrayscaleMask; |
|
FShadingAltitude: integer; |
|
FShadingMask: TBGRACustomBitmap; |
|
FShadingRounded: boolean; |
|
FShadowMask: TGrayscaleMask; |
|
FShadowQuality: TRadialBlurType; |
|
FShadowRadius: integer; |
|
FTextMask: TGrayscaleMask; |
|
FTextSize: TSize; |
Methods
constructor Create(AMask: TBGRACustomBitmap; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint); |
|
constructor Create(AMask: TGrayscaleMask; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint); |
|
destructor Destroy; override; |
|
function Draw(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel): TRect; overload; |
|
function Draw(ADest: TBGRACustomBitmap; X, Y: integer; ATexture: IBGRAScanner; AAlign: TAlignment): TRect; overload; |
|
function Draw(ADest: TBGRACustomBitmap; X, Y: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload; |
|
function Draw(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner): TRect; overload; |
|
function DrawMulticolored(ADest: TBGRACustomBitmap; X,Y: integer; const AColors: array of TBGRAPixel; AAlign: TAlignment): TRect; overload; |
|
function DrawMulticolored(ADest: TBGRACustomBitmap; X,Y: integer; const AColors: array of TBGRAPixel): TRect; overload; |
|
function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel): TRect; overload; |
|
function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner; AAlign: TAlignment): TRect; overload; |
|
function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload; |
|
function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner): TRect; overload; |
|
function DrawShaded(ADest: TBGRACustomBitmap; X, Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; AAlign: TAlignment; ARounded: Boolean = true): TRect; overload; |
|
function DrawShaded(ADest: TBGRACustomBitmap; X, Y: integer; Shader: TCustomPhongShading; Altitude: integer; ATexture: IBGRAScanner; AAlign: TAlignment; ARounded: Boolean = true): TRect; overload; |
|
function DrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; ATexture: IBGRAScanner; ARounded: Boolean = true): TRect; overload; |
|
function DrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; ARounded: Boolean = true): TRect; overload; |
|
function DrawShadow(ADest: TBGRACustomBitmap; X,Y,Radius: integer; AColor: TBGRAPixel): TRect; overload; |
|
function DrawShadow(ADest: TBGRACustomBitmap; X,Y,Radius: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload; |
|
function DrawMask(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; AColor: TBGRAPixel): TRect; overload; |
|
function DrawMask(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; ATexture: IBGRAScanner): TRect; overload; |
|
function DrawMaskMulticolored(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; const AColors: array of TBGRAPixel): TRect; |
|
function InternalDrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; ATexture: IBGRAScanner; ARounded: Boolean): TRect; |
|
procedure ApplyHorizontalCylinder; |
|
procedure ApplySphere; |
|
procedure ApplyVerticalCylinder; |
|
procedure Init(AMask: TGrayscaleMask; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint); |
Properties
property Bounds: TRect read GetBounds; |
|
property Height: integer read GetTextHeight; deprecated; |
|
property MaskHeight: integer read GetMaskHeight; |
|
property MaskWidth: integer read GetMaskWidth; |
|
class property OutlineWidth: integer read GetOutlineWidth; |
|
property ShadowBounds[ARadius: integer]: TRect read GetShadowBounds; |
|
property ShadowQuality: TRadialBlurType read FShadowQuality write SetShadowQuality; |
|
property TextHeight: integer read GetTextHeight; |
|
property TextMask: TGrayscaleMask read FTextMask; |
|
property TextMaskOffset: TPoint read FOffset; |
|
property TextSize: TSize read FTextSize; |
|
property TextWidth: integer read GetTextWidth; |
|
property Width: integer read GetTextWidth; deprecated; |
Description
Fields
FOffset: TPoint; |
|
This item has no description. |
FOutlineMask: TGrayscaleMask; |
|
This item has no description. |
FShadingAltitude: integer; |
|
This item has no description. |
FShadingMask: TBGRACustomBitmap; |
|
This item has no description. |
FShadingRounded: boolean; |
|
This item has no description. |
FShadowMask: TGrayscaleMask; |
|
This item has no description. |
FShadowQuality: TRadialBlurType; |
|
This item has no description. |
FShadowRadius: integer; |
|
This item has no description. |
FTextMask: TGrayscaleMask; |
|
This item has no description. |
FTextSize: TSize; |
|
This item has no description. |
Methods
constructor Create(AMask: TBGRACustomBitmap; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint); |
|
This item has no description. |
constructor Create(AMask: TGrayscaleMask; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint); |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
function Draw(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel): TRect; overload; |
|
This item has no description. |
function Draw(ADest: TBGRACustomBitmap; X, Y: integer; ATexture: IBGRAScanner; AAlign: TAlignment): TRect; overload; |
|
This item has no description. |
function Draw(ADest: TBGRACustomBitmap; X, Y: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload; |
|
This item has no description. |
function Draw(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner): TRect; overload; |
|
This item has no description. |
function DrawMulticolored(ADest: TBGRACustomBitmap; X,Y: integer; const AColors: array of TBGRAPixel; AAlign: TAlignment): TRect; overload; |
|
This item has no description. |
function DrawMulticolored(ADest: TBGRACustomBitmap; X,Y: integer; const AColors: array of TBGRAPixel): TRect; overload; |
|
This item has no description. |
function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel): TRect; overload; |
|
This item has no description. |
function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner; AAlign: TAlignment): TRect; overload; |
|
This item has no description. |
function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload; |
|
This item has no description. |
function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner): TRect; overload; |
|
This item has no description. |
function DrawShaded(ADest: TBGRACustomBitmap; X, Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; AAlign: TAlignment; ARounded: Boolean = true): TRect; overload; |
|
This item has no description. |
function DrawShaded(ADest: TBGRACustomBitmap; X, Y: integer; Shader: TCustomPhongShading; Altitude: integer; ATexture: IBGRAScanner; AAlign: TAlignment; ARounded: Boolean = true): TRect; overload; |
|
This item has no description. |
function DrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; ATexture: IBGRAScanner; ARounded: Boolean = true): TRect; overload; |
|
This item has no description. |
function DrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; ARounded: Boolean = true): TRect; overload; |
|
This item has no description. |
function DrawShadow(ADest: TBGRACustomBitmap; X,Y,Radius: integer; AColor: TBGRAPixel): TRect; overload; |
|
This item has no description. |
function DrawShadow(ADest: TBGRACustomBitmap; X,Y,Radius: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload; |
|
This item has no description. |
function DrawMask(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; AColor: TBGRAPixel): TRect; overload; |
|
This item has no description. |
function DrawMask(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; ATexture: IBGRAScanner): TRect; overload; |
|
This item has no description. |
function DrawMaskMulticolored(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; const AColors: array of TBGRAPixel): TRect; |
|
This item has no description. |
function InternalDrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; ATexture: IBGRAScanner; ARounded: Boolean): TRect; |
|
This item has no description. |
procedure ApplyHorizontalCylinder; |
|
This item has no description. |
procedure ApplySphere; |
|
This item has no description. |
procedure ApplyVerticalCylinder; |
|
This item has no description. |
procedure Init(AMask: TGrayscaleMask; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint); |
|
This item has no description. |
Properties
property Bounds: TRect read GetBounds; |
|
This item has no description. |
property Height: integer read GetTextHeight; deprecated; |
|
Warning: this symbol is deprecated. This item has no description. |
property MaskHeight: integer read GetMaskHeight; |
|
This item has no description. |
property MaskWidth: integer read GetMaskWidth; |
|
This item has no description. |
class property OutlineWidth: integer read GetOutlineWidth; |
|
This item has no description. |
property ShadowBounds[ARadius: integer]: TRect read GetShadowBounds; |
|
This item has no description. |
property ShadowQuality: TRadialBlurType read FShadowQuality write SetShadowQuality; |
|
This item has no description. |
property TextHeight: integer read GetTextHeight; |
|
This item has no description. |
property TextMask: TGrayscaleMask read FTextMask; |
|
This item has no description. |
property TextMaskOffset: TPoint read FOffset; |
|
This item has no description. |
property TextSize: TSize read FTextSize; |
|
This item has no description. |
property TextWidth: integer read GetTextWidth; |
|
This item has no description. |
property Width: integer read GetTextWidth; deprecated; |
|
Warning: this symbol is deprecated. This item has no description. |