ASP Painter
Home
Home
Samples
Samples
Purchase
Purchase
Download
Download
Documentation
Documentation


ASPPainter DrawRectangle

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, ExistFontGetFontHeight ,SetTextAlign, SetFontAntialias, SetFontBold, SetFontGradient, SetFontItalicSetFontName ,SetFontOrientationSetFontRectangleSetFontRegular ,SetFontSizeSetFontStrikeout ,SetFontUnderline , TextOut

More samples:


Text
Antialias, Exist font, Font, Fonts, Rotate text, Style, Text gradient, Text in rectangle



home samples purchase documentation download