DiGrande.it

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)

Parameters:

- (int) X: Horizontal coordinate;

- (int) Y: Vertical coordinate.

Description:

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.

Examples:

- Draw two squares

// The first is rotated around its upper left vertex

GraphicOrigin(30,30)

Square(30,30,30,45)

// The second square is rotated around its center

GraphicOrigin(null,null)

Square(30,30,30,45)