Android Guides | Samples

Android.Opengl.ETC1.DecodeImage Method

Decode an entire image.

Syntax

[Android.Runtime.Register("decodeImage", "(Ljava/nio/Buffer;Ljava/nio/Buffer;IIII)V", "")]
public static Void DecodeImage (Buffer in, Buffer out, Int32 width, Int32 height, Int32 pixelSize, Int32 stride)

Parameters

in
native order direct buffer of the encoded data.
out
native order direct buffer of the image data. Will be written such that pixel (x,y) is at pIn + pixelSize * x + stride * y. Must be large enough to store entire image.
width
height
pixelSize
must be 2 or 3. 2 is an GL_UNSIGNED_SHORT_5_6_5 image, 3 is a GL_BYTE RGB image.
stride

Remarks

Decode an entire image.

[Android Documentation]

Requirements

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