Indexed images with Graphics class
-
I know that the Graphics class cannot take indexed images (I dont really know why). So I need to convert the indexed image to a color image, then convert it back to indexed image. How would I go about doing this conversion into color then back into indexed? Would there be data loss during the conversions? When i was doing it using Photoshop, every time i switched between indexed and RGB, the image got darker and darker, which meant data wasn't being preserved.
-
I know that the Graphics class cannot take indexed images (I dont really know why). So I need to convert the indexed image to a color image, then convert it back to indexed image. How would I go about doing this conversion into color then back into indexed? Would there be data loss during the conversions? When i was doing it using Photoshop, every time i switched between indexed and RGB, the image got darker and darker, which meant data wasn't being preserved.
gigahertz205 wrote:
I know that the Graphics class cannot take indexed images
Are you sure? Indexed to RGB shouldn't cause any visible change. RGB to indexed may cause a change, since a best-fit color table needs to be created.
Mark Salsbery Microsoft MVP - Visual C++ :java: