You are here: Symbol Reference > _AbProc Namespace > Functions > AbGetTextSize Function
ContentsIndexHome
PreviousUpNext
_AbProc.AbGetTextSize Function
Send Feedback

Calculates the size of a string

File
Pascal
procedure AbGetTextSize(can: TCanvas; var b: Integer; var h: Integer; var CenterP: TPoint; Text: string);
C++
AbGetTextSize(TCanvas can, int b, int h, TPoint CenterP, AnsiString Text);
Parameters
Parameters 
Description 
can: TCanvas 
canvas 
var b: Integer 
returns width in pixel 
var h: Integer 
returns height in pixel 
var CenterP: TPoint 
returns center point (x,y) in text 
Text: string 
the string to calculate the size 
Returns

The size and center point of a string in pixel

Description

Calculates the text size and the center point in pixel

Hard-& Software A.Baecker
What do you think about this topic? Send feedback!