office-gobmx/include/vcl/BitmapShadowFilter.hxx
Chris Sherlock c8d564094e vcl: migrate OutputDevice::DrawShadowBitmapEx() to BitmapShadowFilter
Change-Id: I5d8b92d91530feed92dcdf2e384448b05eebdb0f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108315
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-01-08 08:24:42 +01:00

31 lines
804 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 <vcl/BitmapFilter.hxx>
/** If the alpha is beyond a certain threshold, make it fully transparent
*/
class VCL_DLLPUBLIC BitmapShadowFilter final : public BitmapFilter
{
public:
BitmapShadowFilter(Color aShadowColor)
: maShadowColor(aShadowColor)
{
}
virtual BitmapEx execute(BitmapEx const& rBitmapEx) const override;
private:
Color maShadowColor;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */