Can color cycling be achieved in GDI+?

Is "color cycling" possible in GDI+ with WinForms? I'd like the modify one or more colors in the palette of an on screen surface so that whenever the surface is repainted, GDI+ will use the modified colors.

Rather than perform the transformation manually pixel-by-pixel, I hope to use GDI+'s capability to render surfaces using indexed colors. (8bpp indexed color?)

Is there a (fast) way to do this?

NOTE: I don't want to modify the colors globally throughout the application UI. Rather, I only need to cycle colors on one particular control surface.

Answers


AFAIK, this is tied to 8bpp video mode (256 simultaneous colors from a palette of several million). Since almost nobody runs in that mode these days, you wouldn't be able to do hardware palette-based color cycling.

Depending upon what you're trying to do, there may be simple way to achieve this. Can you provide more detail?


Need Your Help

Can tomcat docbase have wildcards?

tomcat tomcat7 server.xml

Is it possible to use wildcards in the docbase as in example below?

Optimization of Image Reconstruction Algorithm using Genetic Algorithm in Matlab

matlab image-processing genetic-algorithm fitness tomography-reconstruction

I'm trying to optimize an image reconstruction algorithm using genetic algorithm.I took initial population size as 10.I have an input image an 10 reconstructed image.fitness function is the differe...