Sprache

ImageWriter.Builder.SetWidthAndHeight(Int32, Int32) Method

Definition

Set the width and height of images.

[Android.Runtime.Register("setWidthAndHeight", "(II)Landroid/media/ImageWriter$Builder;", "", ApiSince=33)]
public Android.Media.ImageWriter.Builder SetWidthAndHeight(int width, int height);
[<Android.Runtime.Register("setWidthAndHeight", "(II)Landroid/media/ImageWriter$Builder;", "", ApiSince=33)>]
member this.SetWidthAndHeight : int * int -> Android.Media.ImageWriter.Builder

Parameters

width
Int32

The width in pixels that will be passed to the producer. Value is 1 or greater

height
Int32

The height in pixels that will be passed to the producer. Value is 1 or greater

Returns

the Builder instance with customized width and height. This value cannot be null.

Attributes

Remarks

Set the width and height of images. Default size is dependent on the Surface that is provided by the downstream end-point.

Android reference for android.media.ImageWriter.Builder.setWidthAndHeight.

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