"EasyX- online documentation" coordinate

In EasyX, the coordinates in two ways: the physical coordinates and logical coordinates.

Physical coordinates

Device is described in physical coordinates of coordinate system.

Coordinate origin at the top left of the device, X-axis is positive to the right, the Y axis is positive, the unit of measure is a pixel.

Coordinate origin, the coordinate axis direction, scaling can not change.

Logical coordinates

Logical coordinate is a coordinate system for drawing in the program.

The default coordinate origin in the upper left corner of the window, X-axis is positive to the right, the Y axis is positive, a unit of measurement points.

By default, the logical and physical coordinates correspond to coordinates, a physical point is equal to a logical pixel.

In this guide, who did not indicate the coordinates refer to logical coordinates.

See

SetOrigin : Modify the origin of coordinates.

setAspectRatio : Modify axis direction.

setAspectRatio : modify the zoom.

Published an original article · won praise 14 · views 1453

Guess you like

Origin blog.csdn.net/qq_27504375/article/details/105041395