Use wxIMAGE_OPTION_QUALITY
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -356,8 +356,8 @@ bool wxJPEGHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbo
|
||||
// 'Quality' is a number between 0 (terrible) and 100 (very good).
|
||||
// The default (in jcparam.c, jpeg_set_defaults) is 75,
|
||||
// and force_baseline is TRUE.
|
||||
if (image->HasOption(wxT("quality")))
|
||||
jpeg_set_quality(&cinfo, image->GetOptionInt(wxT("quality")), TRUE);
|
||||
if (image->HasOption(wxIMAGE_OPTION_QUALITY))
|
||||
jpeg_set_quality(&cinfo, image->GetOptionInt(wxIMAGE_OPTION_QUALITY), TRUE);
|
||||
|
||||
// set the resolution fields in the output file
|
||||
UINT16 resX,
|
||||
|
Reference in New Issue
Block a user