Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.Color; public class Main { public static Bitmap getTransparentPlaceholder(int width, int height) { Bitmap.Config conf = Bitmap.Config.ALPHA_8; Bitmap bmp = Bitmap.createBitmap(width, height, conf); bmp.eraseColor(Color.TRANSPARENT); return bmp; } }