SetFontRectangle Statement:
Set rectangle to draw text
Object.SetFontRectangle
x1, y1, x2, y2
|
Parameters:
x1,y1- coordinates of the top left corner of the rectangle
x2,y2- coordinates of the bottom right corner of the rectangle
|
Sample: object.SetFontRectangle
50, 50, 100, 100
This method sets the borders of rectangle shape to draw text. Text align in the
rectangle can be set with SetTextAlign method. If you want to cancel text
rectangle, you should call ClearFontRectangle. After calling ClearFontRectangle
method, you can draw text in any place of current image.
See also
ClearFontRectangle,
ClearFontStyle,
ExistFont, GetFontHeight
,SetTextAlign,
SetFontAntialias, SetFontBold,
SetFontGradient,
SetFontItalic, SetFontName
,SetFontOrientation,
SetFontRectangle, SetFontRegular
,SetFontSize, SetFontStrikeout
,SetFontUnderline
, TextOut
More samples:
|