Coordinate System
The default coordinate system of a paint device has its origin at the top-left corner. The x values increase to the right and the y values increase downwards.