Sdílet prostřednictvím


ETC1.EncodeImage(Buffer, Int32, Int32, Int32, Int32, Buffer) Method

Definition

Encode an entire image.

[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

Parameters

in
Buffer

a native order direct buffer of the image data. Formatted such that pixel (x,y) is at pIn + pixelSize * x + stride * y;

width
Int32
height
Int32
pixelSize
Int32

must be 2 or 3. 2 is an GL_UNSIGNED_SHORT_5_6_5 image, 3 is a GL_BYTE RGB image.

stride
Int32
out
Buffer

a native order direct buffer of the encoded data. Must be large enough to store entire encoded image.

Attributes

Remarks

Encode an entire image.

Java documentation for android.opengl.ETC1.encodeImage(java.nio.Buffer, int, int, int, int, java.nio.Buffer).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to