ICanvasRenderingContext2DFillText Method (String, Double, Double, Double) |
Draws (fills) a given text at the given (x,y) position.
Namespace: Aspose.Html.Dom.CanvasAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
Syntaxvoid FillText(
string text,
double x,
double y,
double maxWidth
)
Sub FillText (
text As String,
x As Double,
y As Double,
maxWidth As Double
)
void FillText(
String^ text,
double x,
double y,
double maxWidth
)
abstract FillText :
text : string *
x : float *
y : float *
maxWidth : float -> unit
Parameters
- text
- Type: SystemString
The text to draw using the current font, textAlign, textBaseline, and direction values. - x
- Type: SystemDouble
The x axis of the coordinate for the text starting point. - y
- Type: SystemDouble
The y axis of the coordinate for the text starting point. - maxWidth
- Type: SystemDouble
The maximum width to draw. If specified, and the string is computed to be wider than this width, the font is adjusted to use a more horizontally condensed font (if one is available or if a reasonably readable one can be synthesized by scaling the current font horizontally) or a smaller font.
See Also