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