So when we are drawing a rectangle in java
g.drawRect(X, Y, 100, 10);
Is the rectangle formed from the top left corner and goes 100 units to the right and 10 down, or is there a center (X,Y) which extends 50 units to the left and right and 5 units to the top and bottom?
矩形是从左上角形成的,向右移动100个单位,向下移动10个单位
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.