GLES20.GlReadPixels(Int32, Int32, Int32, Int32, Int32, Int32, Buffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GL_RGBA with GL_UNSIGNED_BYTE, or the implementation's supported color-read format paired with its supported type.
- type
- Int32
GL_UNSIGNED_BYTE with GL_RGBA, or the implementation's supported color-read type paired with its supported format.
- 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.