summaryrefslogtreecommitdiffstats
path: root/svx
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2012-07-24 22:01:18 +0200
committerTomaž Vajngerl <quikee@gmail.com>2012-07-24 22:17:27 +0200
commit53d51dbee6d4037c4cfc3fa743de8dac76da48c6 (patch)
tree48a43fab9c2807dbbad088f13bdc400e658a55d8 /svx
parentSimplify compression and remove code duplication in CompressGraphicDialog (diff)
downloadcore-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