void android.graphics.Bitmap.recycle()

void android.graphics.Bitmap.recycle()

Free up the memory associated with this bitmap's pixels, and mark the bitmap as "dead", meaning it will throw an exception if getPixels() or setPixels() is called, and will draw nothing. This operation cannot be reversed, so it should only be called if you are sure there are no further uses for the bitmap. This is an advanced call, and normally need not be called, since the normal GC process will free up this memory when there are no more references to this bitmap.

posted on 2013-07-31 11:45  勤修  阅读(972)  评论(0编辑  收藏  举报

导航