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
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