See Also: ImageReader
public class ImageReader : Object
The ImageReader class allows direct application access to image data rendered into a Surface
Several Android media API classes accept Surface objects as targets to render to, including MediaPlayer, MediaCodec, CameraDevice, ImageWriter and Allocation. The image sizes and formats that can be used with each source vary, and should be checked in the documentation for the specific API.
The image data is encapsulated in Image objects, and multiple such objects can be accessed at the same time, up to the number specified by the maxImages constructor parameter. New images sent to an ImageReader through its Surface are queued until accessed through the ImageReader.AcquireLatestImage or ImageReader.AcquireNextImage call. Due to memory limits, an image source will eventually stall or drop Images in trying to render to the Surface if the ImageReader does not obtain and release Images at a rate equal to the production rate.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
The members of Android.Media.ImageReader are listed below.
See Also: Object
|[read-only]||Height||Int32. The default height of Image, in pixels.|
|[read-only]||ImageFormat||ImageFormatType. The default ImageFormat of Image.|
|[read-only]||MaxImages||Int32. Maximum number of images that can be acquired from the ImageReader by any time (for example, with ImageReader.AcquireNextImage).|
|[read-only]||Width||Int32. The default width of Image, in pixels.|
Free up all the resources associated with this ImageReader.
|NewInstance(Int32, Int32, ImageFormatType, Int32)|
Register a listener to be invoked when a new image becomes available from the ImageReader.