Method ptex
| Improve this Doc View Sourceptex(Double, Double, Double, Double, Double, String)
plptex: Write text inside the viewport
Declaration
public void ptex(Double x, Double y, Double dx, Double dy, Double just, string text)
Parameters
Type | Name | Description |
---|---|---|
Double | x | x coordinate of reference point of string. |
Double | y | y coordinate of reference point of string. |
Double | dx | Together with dy, this specifies the inclination of the string. The baseline of the string is parallel to a line joining (x, y) to (x+dx, y+dy) . |
Double | dy | Together with dx, this specifies the inclination of the string. |
Double | just | Specifies the position of the string relative to its reference point. If just=0. , the reference point is at the left and if just=1. , it is at the right of the string. Other values of just give intermediate justifications. |
System.String | text | A UTF-8 character string to be written out. |
Remarks
Writes text at a specified position and inclination within the viewport. Text is clipped at the viewport boundaries. The reference point of a string lies along a line passing through the string at half the height of a capital letter. The position of the reference point along this line is determined by just, the reference point is placed at world coordinates (x, y) within the viewport. The inclination of the string is specified in terms of differences of world coordinates making it easy to write text parallel to a line in a graph.