TIFF Images Displaying White On Black

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

TIFF Images Displaying White On Black

Postby esimnick » Wed May 25, 2011 3:29 pm

I am having an issue with TIFF images not displaying correctly in all viewers. The images are B/W 200 DPI CCITT 4 Fax Compressed. They display fine in Corel's Paint Shop Pro 2 but not in any other viewer. In all the other viewers they are showing reversed (W/B). I am using Virtual Print Engine v6.00 SDK Windows x86 32-Bit Ansi Enterprise Edition. Below are the parameters I am setting for the export.

* Configure TIFF
.PictureType = PIC_TYPE_TIFF
.PictureExportDither = PICEXP_DITHER_MONO
.TIFFExportOptions = PICEXP_TIFF_APPEND + PICEXP_TIFF_CCITTFAX4
.SetPictureDefaultDPI(200, 200)
esimnick
 
Posts: 4
Joined: Thu Jul 01, 2010 6:41 pm

Re: TIFF Images Displaying White On Black

Postby IDEAL Software Support » Thu May 26, 2011 8:13 am

TIFF files do have a tag inside, which is named "Photometric Interpretation": It can have either the value "min-is-white" or "min-is-black". This flag controls whether a zero bit in the image bitmap is displayed white or black.

The programmers of the viewers you are using did not make their homework and they do not interpret this tag. You forgot one additional viewer (beside others), which does the job correct: If you import the TIFF file with VPE, it is also displayed correctly, because VPE does interpret this flag during import.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: TIFF Images Displaying White On Black

Postby esimnick » Fri May 27, 2011 5:48 pm

Thanks for the explaination.
esimnick
 
Posts: 4
Joined: Thu Jul 01, 2010 6:41 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 17 guests

cron