[ wxwindows-Patches-1537065 ] wxImage: Higher quality scaling/sampling
SourceForge.net
noreply at sourceforge.net
Tue Aug 8 16:48:47 PDT 2006
Patches item #1537065, was opened at 2006-08-08 23:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1537065&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Common
Group: new feature
Status: Open
Resolution: None
Priority: 5
Submitted By: V0rtex (ev0rtex)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxImage: Higher quality scaling/sampling
Initial Comment:
This patch implements an optional higher quality method
for upsampling and downsampling images (selectively
using the best method for each) in wxImage's Scale()
method. Both a box averager and a bicubic algorithm
are used in the process. As can be seen in the patch,
there are a number of functions added for aiding this
process and I figured that the three blurring functions
were useful enough for uses other than just antialiased
downsampling, therefore they have been added to the
documentation as well.
This came about because due to a need for better
looking images (specifically downsampled ones). The
results look much nicer although there is the obvious
drawback of slower upsampling due to the amount of data
processed with the bicubic algorithm.
NOTE: I didn't think that the ResampleBox() and
ResampleBicubic() methods were of much use externally
so I did not add anything to the latex docs for them.
They are documented in their comments, however, as well
as their purpose noted by their obvious names.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1537065&group_id=9863
More information about the wx-dev
mailing list