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.
如何使用 drawline 方法绘制 x?
g.drawLine(getX(), getY(), getX()+getWidth(), getY()+ getHeight());
我假设我将不得不翻转这个。如何?
g.drawLine(getX(), getY(), getX()+getWidth(), getY()+ getHeight()); g.drawLine(getX()+getWidth(), getY(), getX(), getY()+ getHeight());