Aracılığıyla paylaş


Image.Close Method

Definition

Free up this frame for reuse.

[Android.Runtime.Register("close", "()V", "GetCloseHandler")]
public abstract void Close ();
[<Android.Runtime.Register("close", "()V", "GetCloseHandler")>]
abstract member Close : unit -> unit

Implements

Attributes

Remarks

Free up this frame for reuse.

After calling this method, calling any methods on this Image will result in an IllegalStateException, and attempting to read from or write to ByteBuffer ByteBuffers returned by an earlier Plane#getBuffer call will have undefined behavior. If the image was obtained from ImageWriter via ImageWriter#dequeueInputImage(), after calling this method, any image data filled by the application will be lost and the image will be returned to ImageWriter for reuse. Images given to ImageWriter#queueInputImage queueInputImage() are automatically closed.

Java documentation for android.media.Image.close().

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