Purpose
Draw text on a canvas.
Synopsis
procedure XADcanvasdrawtext(id:integer, x:real, y:real,
text:string, color:integer)
procedure XADcanvasdrawtext(id:integer, x:real, y:real,
text:string, color:integer, fontsize:integer, alignment:integer,
fontname:string)
Arguments
|
id
|
Canvas identifier
|
|
x
|
x coordinate
|
|
y
|
y coordinate
|
|
text
|
Text
|
|
color
|
Color
|
|
fontsize
|
Font size
|
|
alignment
|
Vertical and horizontal alignment
|
|
fontname
|
Font name
|
Further information
Draws
text with font
fontname of size
fontsize
at coordinates (
x,
y) with the given
color
and
alignment. If font name and size are not given then the output uses Arial 10pt. The alignment is the sum of one of
XAD_CENTERH,
XAD_LEFT, and
XAD_RIGHT
(horizontal alignment) plus one of
XAD_CENTERV,
XAD_TOP, and
XAD_BOTTOM (vertical alignment).
XAD_DEFAULT
can be used instead to specify upper left alignment.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.