BitmapRegionDecoder.Recycle Method

Definition

Frees up the memory associated with this region decoder, and mark the region decoder as "dead", meaning it will throw an exception if decodeRegion(), getWidth() or getHeight() is called.

[Android.Runtime.Register("recycle", "()V", "")]
public void Recycle ();
[<Android.Runtime.Register("recycle", "()V", "")>]
member this.Recycle : unit -> unit
Attributes

Remarks

Frees up the memory associated with this region decoder, and mark the region decoder as "dead", meaning it will throw an exception if decodeRegion(), getWidth() or getHeight() is called.

This operation cannot be reversed, so it should only be called if you are sure there are no further uses for the region decoder. 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 region decoder.

Java documentation for android.graphics.BitmapRegionDecoder.recycle().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to