語言

YuvImage 建構函式

定義

多載

名稱 Description
YuvImage(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

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

建立一個 YuvImage。

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

建立一個 YuvImage。

YuvImage(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

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

參數

javaReference
IntPtr

nativeint

IntPtrA 包含一個 Java 原生介面(JNI)物件參考。

transfer
JniHandleOwnership

JniHandleOwnershipA 指示如何處理javaReference

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

建立一個 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

參數

yuv
Byte[]

YUV的數據。 若有多個影像平面,所有平面必須串接成單一位元組陣列。

format
ImageFormatType

YUV 資料格式定義於 ImageFormat。

width
Int32

YuvImage 的寬度。

height
Int32

YuvImage 的高度。

strides
Int32[]

(可選)每個影像平面的列位元組。 若 yuv 包含填充,則必須提供每張影像的步幅。 若 strides 為空,該方法假設不填充,並依格式與寬度推導列位元組。

屬性

例外狀況

若格式不支援;寬度或高度 <= 0;或 yuv 為零。

備註

建立一個 YuvImage。 預設使用 SRGB ColorSpace作為 。

Java 文件 android.graphics.YuvImage.YuvImage(byte[], int, int, int, int[])。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

建立一個 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

參數

yuv
Byte[]

YUV的數據。 若有多個影像平面,所有平面必須串接成單一位元組陣列。

format
ImageFormatType

YUV 資料格式定義於 ImageFormat。

width
Int32

YuvImage 的寬度。

height
Int32

YuvImage 的高度。

strides
Int32[]

(可選)每個影像平面的列位元組。 若 yuv 包含填充,則必須提供每張影像的步幅。 若 strides 為空,該方法假設不填充,並依格式與寬度推導列位元組。

colorSpace
ColorSpace

YUV 影像色彩空間定義於 ColorSpace。 若參數為空,SRGB 將設為預設值。

屬性

備註

建立一個 YuvImage。

Java 文件 android.graphics.YuvImage.YuvImage(byte[], int, int, int, int[], android.graphics.ColorSpace)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於