Język

GLES20.GlReadPixels(Int32, Int32, Int32, Int32, Int32, Int32, Buffer) Method

Definition

Copies a color-buffer rectangle into client memory in bottom-to-top row order.

[Android.Runtime.Register("glReadPixels", "(IIIIIILjava/nio/Buffer;)V", "")]
public static void GlReadPixels(int x, int y, int width, int height, int format, int type, Java.Nio.Buffer? pixels);
[<Android.Runtime.Register("glReadPixels", "(IIIIIILjava/nio/Buffer;)V", "")>]
static member GlReadPixels : int * int * int * int * int * int * Java.Nio.Buffer -> unit

Parameters

x
Int32

The source rectangle's left window coordinate in pixels.

y
Int32

The source rectangle's bottom window coordinate in pixels.

width
Int32

The nonnegative read width in pixels.

height
Int32

The nonnegative read height in pixels.

format
Int32

A color-read format supported for the bound framebuffer and type; GL_RGBA pairs with GL_UNSIGNED_BYTE for normalized fixed-point buffers. OpenGL ES 3.0 also supports GL_RGBA_INTEGER for integer buffers.

type
Int32

A color-read type supported for the bound framebuffer and format; GL_UNSIGNED_BYTE pairs with GL_RGBA for normalized fixed-point buffers. OpenGL ES 3.0 also defines GL_FLOAT, GL_INT, and GL_UNSIGNED_INT pairs for floating-point and integer buffers.

pixels
Buffer

A non-null direct or accessible array-backed output buffer at its current position, with enough bytes for the selected format, type, dimensions, and active packing settings including GL_PACK_ALIGNMENT. Capacity is not checked. Leave any supported pixel-pack buffer unbound.

Attributes

Remarks

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