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.
| Parameter | Type | Description |
|---|---|---|
X, Y | Integer | Top-left destination pixel coordinate. |
Text | string | Text string to render. |
Color | TColor32 | Color32 value used to draw text. |
AntiAlias | boolean | Enables 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.
| Parameter | Type | Description |
|---|---|---|
X, Y | Integer | Top-left destination pixel coordinate. |
Text | string | Text string to render. |
Color | TColor32 | Color32 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.