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

Overview

Fields

Protected FOffset: TPoint;
Protected FOutlineMask: TGrayscaleMask;
Protected FShadingAltitude: integer;
Protected FShadingMask: TBGRACustomBitmap;
Protected FShadingRounded: boolean;
Protected FShadowMask: TGrayscaleMask;
Protected FShadowQuality: TRadialBlurType;
Protected FShadowRadius: integer;
Protected FTextMask: TGrayscaleMask;
Protected FTextSize: TSize;

Methods

Public constructor Create(AMask: TBGRACustomBitmap; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint);
Public constructor Create(AMask: TGrayscaleMask; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint);
Public destructor Destroy; override;
Public function Draw(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel): TRect; overload;
Public function Draw(ADest: TBGRACustomBitmap; X, Y: integer; ATexture: IBGRAScanner; AAlign: TAlignment): TRect; overload;
Public function Draw(ADest: TBGRACustomBitmap; X, Y: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload;
Public function Draw(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner): TRect; overload;
Public function DrawMulticolored(ADest: TBGRACustomBitmap; X,Y: integer; const AColors: array of TBGRAPixel; AAlign: TAlignment): TRect; overload;
Public function DrawMulticolored(ADest: TBGRACustomBitmap; X,Y: integer; const AColors: array of TBGRAPixel): TRect; overload;
Public function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel): TRect; overload;
Public function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner; AAlign: TAlignment): TRect; overload;
Public function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload;
Public function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner): TRect; overload;
Public function DrawShaded(ADest: TBGRACustomBitmap; X, Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; AAlign: TAlignment; ARounded: Boolean = true): TRect; overload;
Public function DrawShaded(ADest: TBGRACustomBitmap; X, Y: integer; Shader: TCustomPhongShading; Altitude: integer; ATexture: IBGRAScanner; AAlign: TAlignment; ARounded: Boolean = true): TRect; overload;
Public function DrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; ATexture: IBGRAScanner; ARounded: Boolean = true): TRect; overload;
Public function DrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; ARounded: Boolean = true): TRect; overload;
Public function DrawShadow(ADest: TBGRACustomBitmap; X,Y,Radius: integer; AColor: TBGRAPixel): TRect; overload;
Public function DrawShadow(ADest: TBGRACustomBitmap; X,Y,Radius: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload;
Protected function DrawMask(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; AColor: TBGRAPixel): TRect; overload;
Protected function DrawMask(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; ATexture: IBGRAScanner): TRect; overload;
Protected function DrawMaskMulticolored(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; const AColors: array of TBGRAPixel): TRect;
Protected function InternalDrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; ATexture: IBGRAScanner; ARounded: Boolean): TRect;
Public procedure ApplyHorizontalCylinder;
Public procedure ApplySphere;
Public procedure ApplyVerticalCylinder;
Protected procedure Init(AMask: TGrayscaleMask; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint);

Properties

Public property Bounds: TRect read GetBounds;
Public property Height: integer read GetTextHeight; deprecated;
Public property MaskHeight: integer read GetMaskHeight;
Public property MaskWidth: integer read GetMaskWidth;
Public class property OutlineWidth: integer read GetOutlineWidth;
Public property ShadowBounds[ARadius: integer]: TRect read GetShadowBounds;
Public property ShadowQuality: TRadialBlurType read FShadowQuality write SetShadowQuality;
Public property TextHeight: integer read GetTextHeight;
Public property TextMask: TGrayscaleMask read FTextMask;
Public property TextMaskOffset: TPoint read FOffset;
Public property TextSize: TSize read FTextSize;
Public property TextWidth: integer read GetTextWidth;
Public property Width: integer read GetTextWidth; deprecated;

Description

Fields

Protected FOffset: TPoint;

This item has no description.

Protected FOutlineMask: TGrayscaleMask;

This item has no description.

Protected FShadingAltitude: integer;

This item has no description.

Protected FShadingMask: TBGRACustomBitmap;

This item has no description.

Protected FShadingRounded: boolean;

This item has no description.

Protected FShadowMask: TGrayscaleMask;

This item has no description.

Protected FShadowQuality: TRadialBlurType;

This item has no description.

Protected FShadowRadius: integer;

This item has no description.

Protected FTextMask: TGrayscaleMask;

This item has no description.

Protected FTextSize: TSize;

This item has no description.

Methods

Public constructor Create(AMask: TBGRACustomBitmap; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint);

This item has no description.

Public constructor Create(AMask: TGrayscaleMask; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint);

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function Draw(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel): TRect; overload;

This item has no description.

Public function Draw(ADest: TBGRACustomBitmap; X, Y: integer; ATexture: IBGRAScanner; AAlign: TAlignment): TRect; overload;

This item has no description.

Public function Draw(ADest: TBGRACustomBitmap; X, Y: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload;

This item has no description.

Public function Draw(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner): TRect; overload;

This item has no description.

Public function DrawMulticolored(ADest: TBGRACustomBitmap; X,Y: integer; const AColors: array of TBGRAPixel; AAlign: TAlignment): TRect; overload;

This item has no description.

Public function DrawMulticolored(ADest: TBGRACustomBitmap; X,Y: integer; const AColors: array of TBGRAPixel): TRect; overload;

This item has no description.

Public function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel): TRect; overload;

This item has no description.

Public function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner; AAlign: TAlignment): TRect; overload;

This item has no description.

Public function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload;

This item has no description.

Public function DrawOutline(ADest: TBGRACustomBitmap; X,Y: integer; ATexture: IBGRAScanner): TRect; overload;

This item has no description.

Public 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.

Public 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.

Public function DrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; ATexture: IBGRAScanner; ARounded: Boolean = true): TRect; overload;

This item has no description.

Public function DrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; ARounded: Boolean = true): TRect; overload;

This item has no description.

Public function DrawShadow(ADest: TBGRACustomBitmap; X,Y,Radius: integer; AColor: TBGRAPixel): TRect; overload;

This item has no description.

Public function DrawShadow(ADest: TBGRACustomBitmap; X,Y,Radius: integer; AColor: TBGRAPixel; AAlign: TAlignment): TRect; overload;

This item has no description.

Protected function DrawMask(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; AColor: TBGRAPixel): TRect; overload;

This item has no description.

Protected function DrawMask(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; ATexture: IBGRAScanner): TRect; overload;

This item has no description.

Protected function DrawMaskMulticolored(ADest: TBGRACustomBitmap; AMask: TCustomUniversalBitmap; X,Y: Integer; const AColors: array of TBGRAPixel): TRect;

This item has no description.

Protected function InternalDrawShaded(ADest: TBGRACustomBitmap; X,Y: integer; Shader: TCustomPhongShading; Altitude: integer; AColor: TBGRAPixel; ATexture: IBGRAScanner; ARounded: Boolean): TRect;

This item has no description.

Public procedure ApplyHorizontalCylinder;

This item has no description.

Public procedure ApplySphere;

This item has no description.

Public procedure ApplyVerticalCylinder;

This item has no description.

Protected procedure Init(AMask: TGrayscaleMask; AMaskOwner: boolean; AWidth,AHeight: integer; AOffset: TPoint);

This item has no description.

Properties

Public property Bounds: TRect read GetBounds;

This item has no description.

Public property Height: integer read GetTextHeight; deprecated;

Warning: this symbol is deprecated.

This item has no description.

Public property MaskHeight: integer read GetMaskHeight;

This item has no description.

Public property MaskWidth: integer read GetMaskWidth;

This item has no description.

Public class property OutlineWidth: integer read GetOutlineWidth;

This item has no description.

Public property ShadowBounds[ARadius: integer]: TRect read GetShadowBounds;

This item has no description.

Public property ShadowQuality: TRadialBlurType read FShadowQuality write SetShadowQuality;

This item has no description.

Public property TextHeight: integer read GetTextHeight;

This item has no description.

Public property TextMask: TGrayscaleMask read FTextMask;

This item has no description.

Public property TextMaskOffset: TPoint read FOffset;

This item has no description.

Public property TextSize: TSize read FTextSize;

This item has no description.

Public property TextWidth: integer read GetTextWidth;

This item has no description.

Public property Width: integer read GetTextWidth; deprecated;

Warning: this symbol is deprecated.

This item has no description.