【发布时间】:2010-11-27 16:41:49
【问题描述】:
我想绘制一个在某些级别上可能大于屏幕的图像作为 Android 游戏的背景。我希望用户能够在触摸屏上使用手指滚动图像。
这是我绘制背景的方式:
Bitmap scratch = BitmapFactory.decodeResource(getResources(),R.drawable.background);
canvas.drawColor(Color.BLACK);
canvas.drawBitmap(scratch, 0, 0, null);
【问题讨论】:
标签: android image canvas draw android-bitmap