Android Guides | Samples

Android.Opengl.ETC1.EncodeImage Method

Encode an entire image.

Syntax

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

Parameters

in
a native order direct buffer of the image data. Formatted such that pixel (x,y) is at pIn + pixelSize * x + stride * y;
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
out
a native order direct buffer of the encoded data. Must be large enough to store entire encoded image.

Remarks

Encode 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