Chapter 7. Imaging with OpenGL

by Richard S. Wright, Jr.

WHAT YOU'LL LEARN IN THIS CHAPTER:

How To

Functions You'll Use

Set the raster position

glRasterPos, glWindowPos

Draw bitmaps

glBitmap

Read and write color images

glReadPixels, glDrawPixels

Magnify, shrink, and flip images

glPixelZoom

Set up operations on colors

glPixelTransfer, glPixelMap

Perform color substitutions

glColorTable

Perform advanced image filtering

glConvolutionFilter2D

Collect statistics on images

glHistogram, glGetHistogram

In the preceding chapters, you learned the basics of OpenGL's acclaimed 3D graphics capabilities. Until now, all output has been the result of three-dimensional primitives being transformed and projected to 2D space and finally rasterized into the color buffer. However, OpenGL ...

Get OpenGL® SuperBible, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.