Next / Previous / Contents

8.1. Canvas coordinates

Because the canvas may be larger than the window, and equipped with scrollbars to move the overall canvas around in the window, there are two coordinate systems for each canvas:

  • The window coordinates of a point are relative to the top left corner of the area on the display where the canvas appears.

  • The canvas coordinates of a point are relative to the top left corner of the total canvas.