next up previous contents
Next: 13.2.3 Look-Up Tables Up: 13.2 Colors and Color Previous: 13.2.1 The Accumulation Buffer:   Contents

13.2.2 Pixel Scale and Bias Operations

Scale and bias operations can be used to adjust the colors of images. Also, they can be used to select and expand a small range of values in the input image. Scales and biases are applied at several locations in the pixel transfer pipeline. In general, scales and biases are controlled with eight floating point values (a scale and a bias for each channel).

The first scale and bias in the pixel transfer pipeline is part of base OpenGL and is specified with glPixelTransfer<pname>, <value>(<pname>, <value>) where <pname> specifies one of GL_ RED_SCALE, GL_ RED_BIAS, GL_ GREEN_SCALE, GL_ GREEN_BIAS, GL_ BLUE_SCALE, GL_ BLUE_BIAS, GL_ ALPHA_SCALE, or GL_ ALPHA_BIAS. Other sets of scale and bias values are associated with the color matrix extension (SGI_color_matrix) and the convolution extension (EXT_convolution), both of which are part of the imaging subset of OpenGL 1.2.



2001-01-10