Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Palettes

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello

I have a complex multicoloured image stored in a device context which I need to change the palette. When the palette is changed I need the effect to be instant (e.g I don't want to recalculate and redraw the image).

Does anyone know how to go about changing the palette instantly?

Thanks
 
Hi,
Look up the AnimatePalette(...) API.

Pappy
You learn something everyday.
 
I've tried the AnimatePalette() function. It changes the palette but not the stored image. Using AnimatePalette() I have to recalculate the entire image. I need a way to change the palette directly.

Any other ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top