Java tutorial
//package com.java2s; import android.graphics.Canvas; public class Main { private static void clear(Canvas canvas) { canvas.setBitmap(null); } }