次の方法で共有


ImageWriter.Close Method

Definition

Free up all the resources associated with this ImageWriter.

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

Implements

Attributes

Remarks

Free up all the resources associated with this ImageWriter.

After calling this method, this ImageWriter cannot be used. Calling any methods on this ImageWriter and Images previously provided by #dequeueInputImage() will result in an IllegalStateException, and attempting to write into ByteBuffer ByteBuffers returned by an earlier Image.Plane#getBuffer Plane#getBuffer call will have undefined behavior.

Java documentation for android.media.ImageWriter.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