[Quote=引用 2 楼 qianhen136 的回复:]
引用 1 楼 kf156 的回复:
void translate(int x, int y)
Translates the origin of the graphics context to the point (x, y) in the current coordinate system.
[Quote=引用 1 楼 kf156 的回复:]
void translate(int x, int y)
Translates the origin of the graphics context to the point (x, y) in the current coordinate system.
[/Quote]
能不能详细一点啊。不是很明白。我试过了,但是和setViewWindow()不一样吧。
主要是我的背景我是直接用Graphics画上去的,而没有去用层的管理模式。
我的背景大,有些没显示完,我想移动背景来达到一种精灵移动的效果。。
如果我画的时候用图片的画的坐标,移动的时候移动图片的坐标的话,我就不能计算下一张图片的出现位置了。。