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.
当我移动画布时,我在画布上绘制了很多图像切片,我希望屏幕外的切片不绘制。
我会在你的 onDraw 中放一些这样的东西,告诉它不要只在屏幕上绘制。
if (imageslice.getX() > 0 + screenXOffset && imageslice.getX < screenWidth + screenXOffset){ //Draw your image }