Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { /** * Duplicates a bitmap. This does <b>not</b> recycle the original bitmap after the method is called * @param bm The bitmap you wish to duplicate * @return The new bitmap */ public static Bitmap duplicate(Bitmap bm) { Bitmap newBitmap = Bitmap.createBitmap(bm); return newBitmap; } }