Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TBitmap32🞂RenderTextMethodPublic

TBitmap32.RenderText

Renders anti-aliased text directly into the bitmap buffer using specified color.

Declarations ​

pascal
procedure RenderText(X, Y: Integer; const Text: string; Color: TColor32; AntiAlias: boolean); overload;
procedure RenderText(X, Y: Integer; const Text: string; Color: TColor32); overload;
Overload Details

Overload 1 ​

pascal
procedure RenderText(X, Y: Integer; const Text: string; Color: TColor32; AntiAlias: boolean); overload;

Renders text at (X, Y) with optional anti-aliasing.

ParameterTypeDescription
X, YIntegerTop-left destination pixel coordinate.
TextstringText string to render.
ColorTColor32Color32 value used to draw text.
AntiAliasbooleanEnables or disables anti-aliasing for font rendering.

Overload 2 ​

pascal
procedure RenderText(X, Y: Integer; const Text: string; Color: TColor32); overload;

Renders text at (X, Y) using specified Color32 color with font's current anti-aliasing settings.

ParameterTypeDescription
X, YIntegerTop-left destination pixel coordinate.
TextstringText string to render.
ColorTColor32Color32 value used to draw text.

Description ​

RenderText draws high-quality alpha-blended or anti-aliased text directly onto the bitmap using Graphics32 pixel blending.

INFO

Internally RenderText uses Textout to render the text but the limitations of Textout, with regard to transparency and blending, does not apply to RenderText.

TIP

For highest quality text output it is recommended that you use TCanvas32.RenderText instead of RenderText.

See also ​