Re: Graphics Problems
- Posted by euman at bellsouth.net Apr 04, 2002
- 423 views
Hello all, I hope I write this right! See if you can wrap your brain around this.... My Graphics problem is not really an issue of my DC being corrupt but instead a palette issue after all. I downloaded this utility that allows you to snoop the palette across the system and running apps. http://www.compuphase.com/palspy.zip I opened Jasc PSP 7.0 and the palette the image I am displaying doesnt match the palette from my program when I have SaveDC( ), RestoreDC and then RealizePalette( ). The problem is that there are 20 colors that Windows uses for a "system palette" and my "logical palette" contains (3) colors that are system colors, these make my logical palette become unorginized. I read that using PC_NOCOLLAPSE would eliminate this problem but it doesnt seem to be working as advertised on Win 98 SE. What I am going to do is take the (3) colors and slightly change these in the image to different RGB values so they no longer are mapped to the system colors to see if this works. I'll get back to you all to let you know my findings. Euman