Color Correctness (printing)

I wrote a program that generates specific swatches of colors. It saves them to a file (with PIL) and prints them directly from a display panel.

However, if I print the image file from my favorite graphics program (PSP7), the colors don’t quite match up with the print that was generated from my wxPython program.

I did set the printer settings identically in both my wxPython program and in my graphics program. I haven’t turned on any special print filter in my graphics program.

Has anyone seen this before? Do you suppose wxPython tweaking the colors, or is PSP?

I found that if I save the generated image to a temporary file, load it as a bitmap, and then draw the image with DC.DrawBitmap(…) then the colors look fine.

Why do you suppose the colors would look slightly different if drawn with DC.DrawRectangle(…)?

It’s very weird. At least I’ve eliminated PSP as the culprit and found a workaround, but I would like to know why.

Gre7g

···

On 9/20/07, Gre7g Luterman gre7g.luterman@gmail.com wrote:

I wrote a program that generates specific swatches of colors. It saves them to a file (with PIL) and prints them directly from a display panel.

However, if I print the image file from my favorite graphics program (PSP7), the colors don’t quite match up with the print that was generated from my wxPython program.

I did set the printer settings identically in both my wxPython program and in my graphics program. I haven’t turned on any special print filter in my graphics program.

Has anyone seen this before? Do you suppose wxPython tweaking the colors, or is PSP?