Files
loongoffice/include/vcl/BitmapAlphaClampFilter.hxx
Chris Sherlock 08b62f16a9 tdf#143148 Use pragma once in BitmapAlphaClampFilter.hxx
Change-Id: I45a31288207c0b238351c2cd47e3122e1d381a7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173346
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-09-16 12:19:23 +02:00

33 lines
858 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/.
*
*/
#pragma once
#include <config_options.h>
#include <vcl/BitmapFilter.hxx>
/** If the alpha is beyond a certain threshold, make it fully transparent
*/
class UNLESS_MERGELIBS(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;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */