diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2012-07-24 22:01:18 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2012-07-24 22:17:27 +0200 |
commit | 53d51dbee6d4037c4cfc3fa743de8dac76da48c6 (patch) | |
tree | 48a43fab9c2807dbbad088f13bdc400e658a55d8 /svx | |
parent | Simplify compression and remove code duplication in CompressGraphicDialog (diff) | |
download | core-53d51dbee6d4037c4cfc3fa743de8dac76da48c6.tar.gz core-53d51dbee6d4037c4cfc3fa743de8dac76da48c6.zip |
One pass scale, rotate and crop using bilinear filtering and averaging.
With this commit I reintroduce one pass scale, rotate and crop that
was located in grfmgr2.cxx (now in Bitmap class) and was used for
preparing bitmaps for displaying on screen. By default the combination
of two filters is used: bilinear, which is a similar algorithm than
the "old" one, but with the same result, and averaging algorithm. Bilinear
filtering is used for bitmap enlarging and shrinking till factor 0.6. Below
this bilinear gives bad results because of limited sampling. For such cases
averaging is used which is a simple algorithm for shrinking. In averaging
the algorithm calculates the average of samples which result is the new
pixel. Currently both algorithms are not optimised.
One pass scale, rotate and crop should only be used for displaying of
images.
Change-Id: I5a1330b58a7cbb6fde8546e16c3e8c140afca565
Diffstat (limited to 'svx')
0 files changed, 0 insertions, 0 deletions