1GLPIXELZOOM(3G) GLPIXELZOOM(3G)
2
3
4
6 glPixelZoom - specify the pixel zoom factors
7
8
10 void glPixelZoom( GLfloat xfactor,
11 GLfloat yfactor )
12
13
15 xfactor, yfactor Specify the x and y zoom factors for pixel write oper‐
16 ations.
17
19 glPixelZoom specifies values for the x and y zoom factors. During the
20 execution of glDrawPixels or glCopyPixels, if (xr, yr) is the current
21 raster position, and a given element is in the mth row and nth column
22 of the pixel rectangle, then pixels whose centers are in the rectangle
23 with corners at
24
25 (xr+n⋅xfactor, yr+m⋅yfactor)
26
27 (xr+(n+1)⋅xfactor, yr+(m+1)⋅yfactor)
28
29 are candidates for replacement. Any pixel whose center lies on the
30 bottom or left edge of this rectangular region is also modified.
31
32 Pixel zoom factors are not limited to positive values. Negative zoom
33 factors reflect the resulting image about the current raster position.
34
36 GL_INVALID_OPERATION is generated if glPixelZoom is executed between
37 the execution of glBegin and the corresponding execution of glEnd.
38
40 glGet with argument GL_ZOOM_X
41 glGet with argument GL_ZOOM_Y
42
44 glCopyPixels(3G), glDrawPixels(3G)
45
46
47
48 GLPIXELZOOM(3G)