ETC1.DecodeImage(Buffer, Buffer, Int32, Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
解碼整張圖片。
[Android.Runtime.Register("decodeImage", "(Ljava/nio/Buffer;Ljava/nio/Buffer;IIII)V", "")]
public static void DecodeImage(Java.Nio.Buffer? in, Java.Nio.Buffer? out, int width, int height, int pixelSize, int stride);
[<Android.Runtime.Register("decodeImage", "(Ljava/nio/Buffer;Ljava/nio/Buffer;IIII)V", "")>]
static member DecodeImage : Java.Nio.Buffer * Java.Nio.Buffer * int * int * int * int -> unit
參數
- in
- Buffer
編碼資料的原生順序直接緩衝區。
- out
- Buffer
影像資料的原生順序直接緩衝。 將寫成像素 (x,y) 為 pIn + pixelSize * x + 步幅 * y 的。 必須足夠大以儲存整張影像。
- width
- Int32
解碼後的影像寬度(像素為單位),不含 ETC1 區塊填充。
- height
- Int32
解碼後的影像高度(像素單位),不含 ETC1 區塊填充。
- pixelSize
- Int32
必須是2或3。 2 是 GL_UNSIGNED_SHORT_5_6_5 影像,3 是 GL_BYTE RGB 影像。
- stride
- Int32
解碼輸出影像中連續列之間的位元組距離。
- 屬性
備註
解碼整張圖片。
Java 文件 android.opengl.ETC1.decodeImage(java.nio.Buffer, java.nio.Buffer, int, int, int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。