wxImage - 2-color TIFFs are inverted on load

Thanks for the info. But when I view the images in any of my viewers/editors (IceView, IrfanView, Photoshop) they appear normal. Wouldn't they be inverted across the board if the flag was set as you have suggested?

···

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Those apps are probably creating a correct palette for their use of
these images.

I'm assuming you are using wxBitmap (wxImage) to create your bitmaps.

You may have to create and set a wxPalette on your bitmap in order for
it to display correctly.

The trick will be reading the Photometric tag value from the TIFF file
if you care to do this. I don't know of any way to get this value via
wxPython but I did write Python code to read parse the TIFF directory.
That wasn't too tough. If all your images are this way, you could just
force the palette values and be done with it.

···

On Thu, 2003-09-04 at 15:38, Roger Hyde wrote:

Thanks for the info. But when I view the images in any of my
viewers/editors (IceView, IrfanView, Photoshop) they appear normal.
Wouldn't they be inverted across the board if the flag was set as you have
suggested?

--