YuvImage Constructors

Definition

Overloads

YuvImage(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

YuvImage(Byte[], ImageFormatType, Int32, Int32, Int32[])

Construct an YuvImage.

YuvImage(Byte[], ImageFormatType, Int32, Int32, Int32[], ColorSpace)

Construct an YuvImage.

YuvImage(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected YuvImage (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.YuvImage : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.YuvImage

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

YuvImage(Byte[], ImageFormatType, Int32, Int32, Int32[])

Construct an YuvImage.

[Android.Runtime.Register(".ctor", "([BIII[I)V", "")]
public YuvImage (byte[]? yuv, Android.Graphics.ImageFormatType format, int width, int height, int[]? strides);
[<Android.Runtime.Register(".ctor", "([BIII[I)V", "")>]
new Android.Graphics.YuvImage : byte[] * Android.Graphics.ImageFormatType * int * int * int[] -> Android.Graphics.YuvImage

Parameters

yuv
Byte[]

The YUV data. In the case of more than one image plane, all the planes must be concatenated into a single byte array.

format
ImageFormatType

The YUV data format as defined in ImageFormat.

width
Int32

The width of the YuvImage.

height
Int32

The height of the YuvImage.

strides
Int32[]

(Optional) Row bytes of each image plane. If yuv contains padding, the stride of each image must be provided. If strides is null, the method assumes no padding and derives the row bytes by format and width itself.

Attributes

Exceptions

if format is not support; width or height <= 0; or yuv is null.

Remarks

Construct an YuvImage. Use SRGB for as default ColorSpace.

Java documentation for android.graphics.YuvImage.YuvImage(byte[], int, int, int, int[]).

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

YuvImage(Byte[], ImageFormatType, Int32, Int32, Int32[], ColorSpace)

Construct an YuvImage.

[Android.Runtime.Register(".ctor", "([BIII[ILandroid/graphics/ColorSpace;)V", "", ApiSince=34)]
public YuvImage (byte[] yuv, Android.Graphics.ImageFormatType format, int width, int height, int[]? strides, Android.Graphics.ColorSpace colorSpace);
[<Android.Runtime.Register(".ctor", "([BIII[ILandroid/graphics/ColorSpace;)V", "", ApiSince=34)>]
new Android.Graphics.YuvImage : byte[] * Android.Graphics.ImageFormatType * int * int * int[] * Android.Graphics.ColorSpace -> Android.Graphics.YuvImage

Parameters

yuv
Byte[]

The YUV data. In the case of more than one image plane, all the planes must be concatenated into a single byte array.

format
ImageFormatType

The YUV data format as defined in ImageFormat.

width
Int32

The width of the YuvImage.

height
Int32

The height of the YuvImage.

strides
Int32[]

(Optional) Row bytes of each image plane. If yuv contains padding, the stride of each image must be provided. If strides is null, the method assumes no padding and derives the row bytes by format and width itself.

colorSpace
ColorSpace

The YUV image color space as defined in ColorSpace. If the parameter is null, SRGB will be set as the default value.

Attributes

Remarks

Construct an YuvImage.

Java documentation for android.graphics.YuvImage.YuvImage(byte[], int, int, int, int[], android.graphics.ColorSpace).

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