Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

GraphicOrigin- Sets the origin point of rotation

Sets the origin point used in the drawing instructions to rotate or scale figures.

- GraphicOrigin(X,Y)


- (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