tatiana_c
tatiana_c

Reputation: 958

How to clean or refresh ImageView bitMap canvas?

The source code:

//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 );

.....

Now I want to refresh or to clean the canvas

How can I do it?

Upvotes: 1

Views: 1734

Answers (1)

slayton
slayton

Reputation: 20319

Why not simply do:

canvas = new Canvas(bitmap);

Upvotes: 1

Related Questions