Android Guides | Samples

Android.Graphics.YuvImage Class

YuvImage contains YUV data and provides a method that compresses a region of the YUV data to a Jpeg.

See Also: YuvImage

Syntax

[Android.Runtime.Register("android/graphics/YuvImage", DoNotGenerateAcw=true)]
public class YuvImage : Object

Remarks

YuvImage contains YUV data and provides a method that compresses a region of the YUV data to a Jpeg. The YUV data should be provided as a single byte array irrespective of the number of image planes in it. Currently only ImageFormat.NV21 and ImageFormat.YUY2 are supported. To compress a rectangle region in the YUV data, users have to specify the region by left, top, width and height.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8

The members of Android.Graphics.YuvImage are listed below.

See Also: Object

Public Constructors

Construct an YuvImage.

Protected Constructors

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

Public Properties

[read-only]
HeightInt32.
[read-only]
WidthInt32.
[read-only]
YuvFormatImageFormatType.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods