tdf#161541 sd: fix the orientation of handouts on the printed page
[LibreOffice.git] / include / vcl / bitmap / BitmapSepiaFilter.hxx
blob8f90e3de6e1e207580ba79257236324efe802062
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 #pragma once
13 #include <vcl/bitmap/BitmapFilter.hxx>
15 class BitmapEx;
17 class VCL_DLLPUBLIC BitmapSepiaFilter final : public BitmapFilter
19 public:
20 BitmapSepiaFilter(double nSepiaPercent)
22 // clamp value to 100%
23 if (nSepiaPercent <= 100)
24 mnSepiaPercent = nSepiaPercent;
25 else
26 mnSepiaPercent = 100;
29 virtual BitmapEx execute(BitmapEx const& rBitmapEx) const override;
31 private:
32 sal_uInt16 mnSepiaPercent;
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */