Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于Graphics类方法:fillOval,x和y表示什么?文档说:
Graphics
x
y
x - the x coordinate of the upper left corner of the oval to be filled. y - the y coordinate of the upper left corner of the oval to be filled.
我不明白这个。这是什么意思 ?
看图片:
在一张纸上,画一个矩形。然后在矩形内画一个椭圆,尽可能地填满矩形(椭圆应该接触矩形的所有 4 个边一次)。
正方形的左上角是 (x,y)