Use a default photometric interpretation value of PHOTOMETRIC_MINISWHITE instead of PHOTOMETRIC_MINISBLACK for greyscale and b/w TIFF images.

Closes #13194.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth
2011-08-19 03:50:45 +00:00
parent fc695138b4
commit 2453ceee20

View File

@@ -619,7 +619,7 @@ bool wxTIFFHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbo
} }
else if (spp == 1) else if (spp == 1)
{ {
photometric = PHOTOMETRIC_MINISBLACK; photometric = PHOTOMETRIC_MINISWHITE;
} }
const bool isColouredImage = (spp > 1) const bool isColouredImage = (spp > 1)