]> git.saurik.com Git - wxWidgets.git/commit
Changed behaviour of wxImageResizeQuality parameter in wxImage.Scale and wxImage...
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 15 Mar 2011 16:42:34 +0000 (16:42 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 15 Mar 2011 16:42:34 +0000 (16:42 +0000)
commitfdb7d5bbc200b5a8abd323bab39f5f804cb037bc
tree3161d0d239212051b11619ecba6603f1a6afde91
parent41774f1b20ee2462d04f032eb4740cb97346e2ec
Changed behaviour of wxImageResizeQuality parameter in wxImage.Scale and wxImage.Rescale.

Made the following changes:

* Formerly specifying to resize using wxIMAGE_QUALITY_BICUBIC or wxIMAGE_QUALITY_BILINEAR could result in the ResampleBox method being used. Now always resize with the method that the user actually specified.

* Added wxIMAGE_QUALITY_BOX_AVERAGE to explicitly allow resizing with the ResampleBox method.

* Previously wxIMAGE_QUALITY_HIGH was equal to wxIMAGE_QUALITY_BICUBIC. It has been changed to use wxIMAGE_QUALITY_BOX_AVERAGE when reducing the size of an image and wxIMAGE_QUALITY_BICUBIC in all other cases.

Closes #12845.

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