TGML Rotation
<Rotate> rotates the coordinate system for the immediate parent element about a specified point.
Attribute | Type | Description |
---|---|---|
Angle |
Double |
The angle of the rotation, measured in degrees. |
Center |
Point |
Describes the position of the center point ("X,Y") of the rotation. |
Different Center values:
Example:
<TGML>
<Polygon Points="50.0,50.0 150.0,50.0 150.0,150.0 50.0,150.0 Stroke="#000000" Fill="None"/>
<Polygon Points="50.0,50.0 150.0,50.0 150.0,150.0 50.0,150.0 Stroke="#0000FF" Fill="#FFFF00" 0pacity="0.75">
<Rotate Angle="20" Center="0.5,0.5"/>
</Polygon>
</TGML>
Example on screen: