Android Bitmap Recycle recycleBitmap(Bitmap bitmap)

Here you can find the source of recycleBitmap(Bitmap bitmap)

Description

recycle Bitmap

Declaration

public static void recycleBitmap(Bitmap bitmap) 

Method Source Code

//package com.java2s;

import android.graphics.Bitmap;

public class Main {
    public static void recycleBitmap(Bitmap bitmap) {
        if (null != bitmap && !bitmap.isRecycled()) {
            bitmap.recycle();//from   w  w  w .j av  a 2s  .  c  o  m
        }
    }
}

Related

  1. recycleSilently(Bitmap bitmap)