GraphicOrigin- Sets the origin point of rotation
Sets the origin point used in the drawing instructions to rotate or scale figures.
- (int) X: Horizontal coordinate;
- (int) Y: Vertical coordinate.
Use GraphicOrigin to set the drawing origin point. The origin point is used in the drawing instructions to rotate or scale figures around it. Initially the origin point is zero, so the rotation or scale of the figures is around their hypothetical center. Use the "null" constant as a parameter to set a zero origin point.
The OriginX and OriginY constants contain the origin point values.
- Draw two squares
// The first is rotated around its upper left vertex
// The second square is rotated around its center