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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Palette

Status
Not open for further replies.

SteveD73

Programmer
Jan 5, 2001
109
0
0
GB
Hello

I have created a program which generates a complex image in an offscreen device context using the function SetPixel(). Due to the large number of calculations the image takes about 2 minutes to generate. Once it is generated it is BitBlt'ed to the screen. For the next stage I need to change the palette of the image. This is where I am having troubles.

I am changing the values in the palette and then using the AnimatePalette() function to commit the changes. The touble is when I do this it does not change the colours on the screen.

Does anyone have any ideas on how to change the palette and cause the changes to appear on screen at the same time?

Have I explained all of that okay?

Any help is much appreciated.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top