LibreOffice Module vcl (master)  1
BitmapSmoothenFilter.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  */
10 
11 #include <vcl/bitmapex.hxx>
15 
17 {
18  BitmapEx aBitmapEx(rBitmapEx);
19  bool bRet = false;
20 
21  if (mfRadius > 0.0) // Blur for positive values of mnRadius
23  else if (mfRadius < 0.0) // Unsharpen mask for negative values of mnRadius
25 
26  if (bRet)
27  return rBitmapEx;
28 
29  return BitmapEx();
30 }
31 
32 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static bool Filter(BitmapEx &rBmpEx, BitmapFilter const &rFilter)
virtual BitmapEx execute(BitmapEx const &rBitmapEx) const override
Separable Unsharpen Mask filter is actually a subtracted blurred image from the original image...