Share via


ETC1Util.CompressTexture(Buffer, Int32, Int32, Int32, Int32) Method

Definition

Helper function that compresses an image into an ETC1Texture.

[Android.Runtime.Register("compressTexture", "(Ljava/nio/Buffer;IIII)Landroid/opengl/ETC1Util$ETC1Texture;", "")]
public static Android.Opengl.ETC1Util.ETC1Texture? CompressTexture (Java.Nio.Buffer? input, int width, int height, int pixelSize, int stride);
[<Android.Runtime.Register("compressTexture", "(Ljava/nio/Buffer;IIII)Landroid/opengl/ETC1Util$ETC1Texture;", "")>]
static member CompressTexture : Java.Nio.Buffer * int * int * int * int -> Android.Opengl.ETC1Util.ETC1Texture

Parameters

input
Buffer

a native order direct buffer containing the image data

width
Int32

the width of the image in pixels

height
Int32

the height of the image in pixels

pixelSize
Int32

the size of a pixel in bytes (2 or 3)

stride
Int32

the width of a line of the image in bytes

Returns

the ETC1 texture.

Attributes

Remarks

Java documentation for android.opengl.ETC1Util.compressTexture(java.nio.Buffer, int, int, int, int).

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