如何清理或刷新ImageView bitMap画布?

时间:2012-01-20 16:22:29

标签: android android-widget android-view

源代码:

//The drawing of the circle on the canvas
imageView = new ImageView(this);
bitmap = Bitmap.createBitmap(200 ,200 , Bitmap.Config.ARGB_8888);
imageView.setBackgroundDrawable(new BitmapDrawable(bitmap));
Canvas canvas = new Canvas (bitmap);
canvas.drawCircle (50 , 50 , 20 , paint );

.....

现在我要刷新或清理画布

我该怎么做?

1 个答案:

答案 0 :(得分:1)

为什么不简单地做:

canvas = new Canvas(bitmap);