office-gobmx/include/vcl/BitmapAlphaClampFilter.hxx
Luboš Luňák e9ecdfc758 fix header guard
Change-Id: I01e21c5ed1ffae27394ddb2b63a8c590f81325d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103824
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-10-02 15:41:46 +02:00

34 lines
919 B
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
#ifndef INCLUDED_INCLUDE_VCL_BITMAPALPHACLAMPFILTER_HXX
#define INCLUDED_INCLUDE_VCL_BITMAPALPHACLAMPFILTER_HXX
#include <vcl/BitmapFilter.hxx>
/** If the alpha is beyond a certain threshold, make it fully transparent
*/
class VCL_DLLPUBLIC BitmapAlphaClampFilter final : public BitmapFilter
{
public:
BitmapAlphaClampFilter(sal_uInt8 cThreshold)
: mcThreshold(cThreshold)
{
}
virtual BitmapEx execute(BitmapEx const& rBitmapEx) const override;
private:
sal_uInt8 mcThreshold;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */