diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-13 08:47:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-13 14:36:27 +0100 |
commit | 502f6372aeb6689f3d61cea7a77b2e8db160d767 (patch) | |
tree | eabad6b878cd69d0f61af04259935d7efcd23830 /include/vcl/GraphicAttributes.hxx | |
parent | f3d39d9a8502ae678a4eedfb73d1efc49104d7dc (diff) |
transparency->alpha in GraphicAttr
Change-Id: I1fe9311871724ff8b7b8960f5dba6e890198565c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109211
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/GraphicAttributes.hxx')
-rw-r--r-- | include/vcl/GraphicAttributes.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/GraphicAttributes.hxx b/include/vcl/GraphicAttributes.hxx index 4fca512956c6..480953982ede 100644 --- a/include/vcl/GraphicAttributes.hxx +++ b/include/vcl/GraphicAttributes.hxx @@ -47,7 +47,7 @@ private: short mnGPercent; short mnBPercent; bool mbInvert; - sal_uInt8 mcTransparency; + sal_uInt8 mcAlpha; GraphicDrawMode meDrawMode; public: @@ -99,8 +99,8 @@ public: void SetInvert(bool bInvert) { mbInvert = bInvert; } bool IsInvert() const { return mbInvert; } - void SetTransparency(sal_uInt8 cTransparency) { mcTransparency = cTransparency; } - sal_uInt8 GetTransparency() const { return mcTransparency; } + void SetAlpha(sal_uInt8 cAlpha) { mcAlpha = cAlpha; } + sal_uInt8 GetAlpha() const { return mcAlpha; } bool IsSpecialDrawMode() const { return (meDrawMode != GraphicDrawMode::Standard); } bool IsMirrored() const { return mnMirrFlags != BmpMirrorFlags::NONE; } @@ -109,7 +109,7 @@ public: return (mnLeftCrop != 0 || mnTopCrop != 0 || mnRightCrop != 0 || mnBottomCrop != 0); } bool IsRotated() const { return ((mnRotate10 % 3600_deg10) != 0_deg10); } - bool IsTransparent() const { return (mcTransparency > 0); } + bool IsTransparent() const { return (mcAlpha < 255); } bool IsAdjusted() const { return (mnLumPercent != 0 || mnContPercent != 0 || mnRPercent != 0 || mnGPercent != 0 |