diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-09 15:58:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-11 08:57:13 +0000 |
commit | cfb2a587bc59d2a0ff520dd09393f898506055d6 (patch) | |
tree | 851ad7f79b1e453d74d3eba38047b1b70a6f7917 /sd/qa | |
parent | b8c66c7f9b25ff88994aef92f56f61f176dc8a6f (diff) |
rename BitmapEx::GetAlpha to GetAlphaMask
to ease the reading of code related to an upcoming patch to convert
transparency to alpha, since there is already a GetAlpha in Color.
Change-Id: I1af0f8f6dd94acfe4673c8556c7aff6c20da3f7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145209
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/qa')
-rw-r--r-- | sd/qa/unit/PNGExportTests.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/qa/unit/PNGExportTests.cxx b/sd/qa/unit/PNGExportTests.cxx index 2c77bd9bbfed..dcbe54054bd6 100644 --- a/sd/qa/unit/PNGExportTests.cxx +++ b/sd/qa/unit/PNGExportTests.cxx @@ -195,7 +195,7 @@ CPPUNIT_TEST_FIXTURE(SdPNGExportTest, testTdf136632) SvFileStream aFileStream(maTempFile.GetURL(), StreamMode::READ); vcl::PngImageReader aPNGReader(aFileStream); BitmapEx aBMPEx = aPNGReader.read(); - AlphaMask aAlpha = aBMPEx.GetAlpha(); + AlphaMask aAlpha = aBMPEx.GetAlphaMask(); AlphaMask::ScopedReadAccess pReadAccess(aAlpha); // Without the fix in place, this test would have failed here @@ -284,7 +284,7 @@ CPPUNIT_TEST_FIXTURE(SdPNGExportTest, testTdf147119) Size aSize = aBMPEx.GetSizePixel(); CPPUNIT_ASSERT_EQUAL(Size(100, 100), aSize); - AlphaMask aAlpha = aBMPEx.GetAlpha(); + AlphaMask aAlpha = aBMPEx.GetAlphaMask(); { AlphaMask::ScopedReadAccess pReadAccess(aAlpha); for (tools::Long nX = 1; nX < aSize.Width() - 1; ++nX) |