Share via


ImageWriter.MaxImages Property

Definition

Maximum number of Images that can be dequeued from the ImageWriter simultaneously (for example, with #dequeueInputImage()).

public virtual int MaxImages { [Android.Runtime.Register("getMaxImages", "()I", "GetGetMaxImagesHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getMaxImages", "()I", "GetGetMaxImagesHandler", ApiSince=23)>]
member this.MaxImages : int

Property Value

Maximum number of Images that can be dequeued from this ImageWriter.

Attributes

Remarks

Maximum number of Images that can be dequeued from the ImageWriter simultaneously (for example, with #dequeueInputImage()).

An Image is considered dequeued after it's returned by #dequeueInputImage() from ImageWriter, and until the Image is sent back to ImageWriter via #queueInputImage, or Image#close().

Attempting to dequeue more than maxImages concurrently will result in the #dequeueInputImage() function throwing an IllegalStateException.

Java documentation for android.media.ImageWriter.getMaxImages().

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