ImageReader.Builder.SetImageFormat(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the default image format passed by the producer.
[Android.Runtime.Register("setImageFormat", "(I)Landroid/media/ImageReader$Builder;", "", ApiSince=33)]
public Android.Media.ImageReader.Builder SetImageFormat(int imageFormat);
[<Android.Runtime.Register("setImageFormat", "(I)Landroid/media/ImageReader$Builder;", "", ApiSince=33)>]
member this.SetImageFormat : int -> Android.Media.ImageReader.Builder
Parameters
- imageFormat
- Int32
The format of the image that this reader will produce. This must be one of the ImageFormat or PixelFormat constants. Note that not all formats are supported, like ImageFormat.NV21. The default value is ImageFormat.UNKNOWN.
Returns
the builder instance with customized image format value. This value cannot be null.
- Attributes
Remarks
Set the default image format passed by the producer. May be overridden by the producer. setImageFormat(int) function replaces the combination of setDefaultHardwareBufferFormat(int) and setDefaultDataSpace(int) functions. Either this or these two functions must be called to initialize an ImageReader instance.
Android reference for android.media.ImageReader.Builder.setImageFormat.
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.