Language

ImageWriter.Builder.SetImageFormat(Int32) Method

Definition

Set the image format of this ImageWriter.

[Android.Runtime.Register("setImageFormat", "(I)Landroid/media/ImageWriter$Builder;", "", ApiSince=33)]
public Android.Media.ImageWriter.Builder SetImageFormat(int imageFormat);
[<Android.Runtime.Register("setImageFormat", "(I)Landroid/media/ImageWriter$Builder;", "", ApiSince=33)>]
member this.SetImageFormat : int -> Android.Media.ImageWriter.Builder

Parameters

imageFormat
Int32

A supported image format, represented as the numeric value of ImageFormatType or Format.

Returns

the Builder instance with customized image format. This value cannot be null.

Attributes

Exceptions

imageFormat is not a valid public image or pixel format.

Remarks

Set the image format of this ImageWriter. Default format depends on the Surface provided.

Android reference for android.media.ImageWriter.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.

Applies to