diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2018-04-19 06:50:32 +1000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-04-22 05:30:21 +0200 |
commit | 8559353af24123c7a736e64311d57d85bb3cb44c (patch) | |
tree | 6c917c0fee785b632e66cfbfd555ea86cedd7e6f /vcl | |
parent | 57faa86592ddfc60be206b70ee16671585b7ca60 (diff) |
vcl: introduce BitmapSharpenFilter
Change-Id: Ib503efa3634b3a000261d2398d04f779079bfe3f
Reviewed-on: https://gerrit.libreoffice.org/53129
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/bitmap4.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/gdi/bitmap4.cxx b/vcl/source/gdi/bitmap4.cxx index e7c18f01718d..f13aa0bb9d24 100644 --- a/vcl/source/gdi/bitmap4.cxx +++ b/vcl/source/gdi/bitmap4.cxx @@ -21,7 +21,7 @@ #include <vcl/bitmapaccess.hxx> #include <vcl/bitmap.hxx> #include <vcl/BitmapSmoothenFilter.hxx> -#include <vcl/BitmapConvolutionMatrixFilter.hxx> +#include <vcl/BitmapSharpenFilter.hxx> #include <bitmapwriteaccess.hxx> @@ -60,9 +60,8 @@ bool Bitmap::Filter( BmpFilter eFilter, const BmpFilterParam* pFilterParam ) case BmpFilter::Sharpen: { - const long pSharpenMatrix[] = { -1, -1, -1, -1, 16, -1, -1, -1, -1 }; BitmapEx aBmpEx(*this); - bRet = BitmapFilter::Filter(aBmpEx, BitmapConvolutionMatrixFilter(&pSharpenMatrix[0])); + bRet = BitmapFilter::Filter(aBmpEx, BitmapSharpenFilter()); *this = aBmpEx.GetBitmap(); } break; |