Java AffineTransform 移动原点
我想将原点从组件的左上角移动到底部中间? 我一直在玩 AffineTransform 类无法让它工作?
I would like to move the origin from top left to bottom middle of the component?
I have been playing with AffineTransform class could not get it to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将需要尝试绘制的组件的高度和宽度。 假设您使用 Paint(Graphics g) 方法,最简单的方法是:
You will need the height and width of the component that you are trying to draw. Assuming you are in the
paint(Graphics g)
method the simplest way is: