diff options
Diffstat (limited to 'vcl/source/bitmap/bitmapfilter.cxx')
-rw-r--r-- | vcl/source/bitmap/bitmapfilter.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/vcl/source/bitmap/bitmapfilter.cxx b/vcl/source/bitmap/bitmapfilter.cxx index 34ff09f56799..4f4ae5ae0961 100644 --- a/vcl/source/bitmap/bitmapfilter.cxx +++ b/vcl/source/bitmap/bitmapfilter.cxx @@ -8,7 +8,7 @@ * */ -#include <bitmapfilter.hxx> +#include <vcl/BitmapFilter.hxx> BitmapFilter::BitmapFilter() {} @@ -16,4 +16,18 @@ BitmapFilter::BitmapFilter() BitmapFilter::~BitmapFilter() {} +bool BitmapFilter::Filter(BitmapEx &rBmpEx, BitmapFilter &&rFilter) +{ + BitmapEx aTmpBmpEx(rFilter.execute(rBmpEx)); + + if (aTmpBmpEx.IsEmpty()) + { + SAL_WARN("vcl.gdi", "Bitmap filter failed"); + return false; + } + + rBmpEx = aTmpBmpEx; + return true; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |