GraphicOffset- Sets an offset to drawing coordinates
Sets horizontal and vertical offset values, added to all drawing instructions.
- (int) X: Horizontal offset;
- (int) Y: vertical offset.
Use GraphicOffset to set an offset or, in other words, a new origin point (usually located at the 0x0y point). The instruction can be used in any part of the code.
By changing the origin point, the offset values are added to all X Y coordinates used in the figure drawing. This means that the coordinates specified in the figures will remain unchanged, but their design will be moved forward or backward depending on the set Offset.
The constants OffsetX and OffsetY contain the offset values.
- Draw two similar circles, but the second is shifted from the first by 40 points horizontally and 30 points vertically. The absolute position in which it is plotted is calculated: 40+20, 30+20