Avoid potential negative array index access to cached text.
[LibreOffice.git] / include / vcl / BitmapEmbossGreyFilter.hxx
blob34d9b5bb8c1052f4768f5e6239fc5bb2b5b4727e
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_BITMAPEMBOSSGREYFILTER_HXX
12 #define INCLUDED_VCL_BITMAPEMBOSSGREYFILTER_HXX
14 #include <sal/config.h>
16 #include <tools/degree.hxx>
17 #include <vcl/BitmapFilter.hxx>
19 class BitmapEx;
21 class VCL_DLLPUBLIC BitmapEmbossGreyFilter final : public BitmapFilter
23 public:
24 BitmapEmbossGreyFilter(Degree100 nAzimuthAngle, Degree100 nElevationAngle)
25 : mnAzimuthAngle(nAzimuthAngle)
26 , mnElevationAngle(nElevationAngle)
30 virtual BitmapEx execute(BitmapEx const& rBitmapEx) const override;
32 private:
33 Degree100 mnAzimuthAngle;
34 Degree100 mnElevationAngle;
37 #endif
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */