I would like to use glReadPixel to scan an image and keep only a certain amount of colors in order to redraw the image by mapping them to this reduced set of colors.
my questions are
- what variable or where does glReadPixel store the scanned RGB pixel values into?
- how do you assign a pixel to a color? is there a function where i pass in the pixel coordinates and color?
i’m just starting to play around with color maps , so am not familiar with what can or cannot do.
help appreciated!