Unit BGRATextFX

Description

Text effects using system text rendering.

The simplest way to render effects is to use TBGRATextEffectFontRenderer class.

You may need TBGRATextEffect if you want to have more control over text effects, especially if you always draw the same text. Keeping the same TBGRATextEffect object will avoid creating the text mask over and over again.

Font rendering units : BGRAText, BGRATextFX, BGRAVectorize, BGRAFreeType

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TBGRATextEffect Implementation of text effects using system rendering.
Class TBGRATextEffectFontRenderer Font renderer with shadow and outline effects.

Functions and Procedures

procedure BGRATextOutImproveReadability(bmp: TBGRACustomBitmap; AFont: TFont; xf,yf: single; text: string; color: TBGRAPixel; tex: IBGRAScanner; align: TAlignment; mode : TBGRATextOutImproveReadabilityMode);
function TextShadow(AWidth,AHeight: Integer; AText: String; AFontHeight: Integer; ATextColor,AShadowColor: TBGRAPixel; AOffSetX,AOffSetY: Integer; ARadius: Integer = 0; AFontStyle: TFontStyles = []; AFontName: String = 'Default'; AShowText: Boolean = True; AFontQuality: TBGRAFontQuality = fqFineAntialiasing): TBGRACustomBitmap;

Description

Functions and Procedures

procedure BGRATextOutImproveReadability(bmp: TBGRACustomBitmap; AFont: TFont; xf,yf: single; text: string; color: TBGRAPixel; tex: IBGRAScanner; align: TAlignment; mode : TBGRATextOutImproveReadabilityMode);

This item has no description.

function TextShadow(AWidth,AHeight: Integer; AText: String; AFontHeight: Integer; ATextColor,AShadowColor: TBGRAPixel; AOffSetX,AOffSetY: Integer; ARadius: Integer = 0; AFontStyle: TFontStyles = []; AFontName: String = 'Default'; AShowText: Boolean = True; AFontQuality: TBGRAFontQuality = fqFineAntialiasing): TBGRACustomBitmap;

Compute an image containing a text with shadow