]> git.saurik.com Git - wxWidgets.git/commit - src/common/imagtiff.cpp
Added option to TIFF handler for specifying the photometric interpretation.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 19 Aug 2011 03:47:40 +0000 (03:47 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 19 Aug 2011 03:47:40 +0000 (03:47 +0000)
commitfc695138b415c96a5b8a5a58086e5c393b4a349e
tree2b4ce12eae110fed20399859d7177c6e69008deb
parent8e28cc4701896761cd2c306525be2a31eb622cf4
Added option to TIFF handler for specifying the photometric interpretation.

Added option wxIMAGE_OPTION_TIFF_PHOTOMETRIC for reading and writing TIFF images. This is mostly for being able to distinguish between PHOTOMETRIC_MINISBLACK (chocolate flavour) and PHOTOMETRIC_MINISWHITE (vanilla) as currently the flavour used was fixed. It applies to greyscale as well as black and white images. Added unit tests to verify the written photometric value.

Also see #13194.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/imagtiff.h
src/common/imagtiff.cpp
tests/image/image.cpp