diff options
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/Opacity.hpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/src/Opacity.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/Opacity.hpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/Opacity.hpp index 84880e7b66d..867e69993a1 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/src/Opacity.hpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/Opacity.hpp @@ -2,7 +2,7 @@ ** Opacity.hpp ** ** ** ** This file is part of dvisvgm -- a fast DVI to SVG converter ** -** Copyright (C) 2005-2022 Martin Gieseking <martin.gieseking@uos.de> ** +** Copyright (C) 2005-2023 Martin Gieseking <martin.gieseking@uos.de> ** ** ** ** This program is free software; you can redistribute it and/or ** ** modify it under the terms of the GNU General Public License as ** @@ -27,6 +27,7 @@ class OpacityAlpha { public: OpacityAlpha () =default; OpacityAlpha (double constalpha, double shapealpha) : _constalpha(constalpha), _shapealpha(shapealpha) {} + explicit OpacityAlpha (double alpha) : _constalpha(alpha) {} void setConstAlpha (double alpha) { _constalpha = alpha;} void setShapeAlpha (double shapealpha) {_shapealpha = shapealpha;} double value () const {return _constalpha * _shapealpha;} @@ -66,6 +67,8 @@ class Opacity { bool operator == (const Opacity &opacity) const; bool operator != (const Opacity &opacity) const; + static BlendMode blendMode (const std::string &name); + private: OpacityAlpha _fillalpha; OpacityAlpha _strokealpha; |