Avoid crash in printer dlg due to empty QImage
[LibreOffice.git] / include / vcl / BitmapSeparableUnsharpenFilter.hxx
blob1812b9013fe8266ff001152728ef6428a5a362e8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
11 #ifndef INCLUDED_VCL_BITMAPSEPARABLEUNSHARPENFILTER_HXX
12 #define INCLUDED_VCL_BITMAPSEPARABLEUNSHARPENFILTER_HXX
14 #include <vcl/BitmapFilter.hxx>
16 class BitmapEx;
18 /** Separable Unsharpen Mask filter is actually a subtracted blurred
19 image from the original image.
21 class VCL_DLLPUBLIC BitmapSeparableUnsharpenFilter : public BitmapFilter
23 public:
24 BitmapSeparableUnsharpenFilter(double fRadius)
25 : mfRadius(fRadius)
29 virtual BitmapEx execute(BitmapEx const& rBitmapEx) override;
31 private:
32 double mfRadius;
35 #endif
37 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */