Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { /** * Returns a plain white bitmap. * @param width The width of the bitmap * @param height THe height of the bitmap * @return the plain white bitmap */ public static Bitmap getBlankBitmap(int width, int height) { Bitmap image = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); image.eraseColor(android.graphics.Color.WHITE); return image; } }