EasyManuals Logo
Home>HP>Desktop>b2600

HP b2600 Reference Guide

HP b2600
486 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #380 background imageLoading...
Page #380 background image
R
glReadPixels
Chapter 16
380
glReadPixels
glReadPixels: read a block of pixels from the frame buffer.
C Specification
void glReadPixels(
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLvoid *pixels)
Parameters
x, y Specify the window coordinates of the first pixel that is read from the
frame buffer. This location is the lower left corner of a rectangular
block of pixels.
width, height Specify the dimensions of the pixel rectangle. width and height of one
correspond to a single pixel.
format Specifies the format of the pixel data. The following symbolic values
are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX,
GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE,
GL_ALPHA, GL_RGB, GL_RGBA, GL_LUMINANCE, and
GL_LUMINANCE_ALPHA.
type Specifies the data type of the pixel data. Must be one of
GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP,
GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT,
GL_INT, or GL_FLOAT.
pixels Returns the pixel data.
Description
glReadPixels returns pixel data from the frame buffer, starting with the pixel whose
lower left corner is at location (x, y), into client memory starting at location pixels.
Several parameters control the processing of the pixel data before it is placed into client
memory. These parameters are set with three commands: glPixelStore, glPixelTransfer,
and glPixelMap. This reference page describes the effects on glReadPixels of most, but
not all of the parameters specified by these three commands.
glReadPixels returns values from each pixel with lower left corner at (x+i,y+j) for 0 i
< width and 0 j < height. This pixel is said to be the ith pixel in the jth row. Pixels are
returned in row order from the lowest to the highest row, left to right in each row.
format specifies the format for the returned pixel values; accepted values are:
GL_COLOR_INDEX

Table of Contents

Other manuals for HP b2600

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP b2600 and is the answer not in the manual?

HP b2600 Specifications

General IconGeneral
BrandHP
Modelb2600
CategoryDesktop
LanguageEnglish

Related product manuals