summaryrefslogtreecommitdiff
path: root/vcl/source/bitmap/BitmapMaskToAlphaFilter.cxx
AgeCommit message (Collapse)Author
2023-07-25Convert internal vcl bitmap formats transparency->alpha (II)Noel Grandin
(Second attempt at landing this) Image formats and graphics APIs use alpha, not transparency, so change our internal formats and data structures to work directly with alpha, so we don't need to modify data before we push it to graphics APIs. Add a couple of new Color constants to make the intention of the vcl code clearer. Notes (*) On macOS, tweaking the logic in CreateWithSalBitmapAndMask to more accurately reflect the requirements of the CGImageCreateWithMask function seems to fix some tests. (*) The vcl code does not properly support gradients with transparency. So the previous code was wrong, and this change is going to result in slightly different wrongness. Change-Id: I9e21c2e98d88ecfdc5f75db13bd1ffff7c38db98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114168 Tested-by: Jenkins Reviewed-by: Patrick Luby <plubius@neooffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-10-31tools::Long->sal_Int32 in bitmap filtersNoel Grandin
Change-Id: Ic37f238824e1af11c924d3bccc4933cee364d798 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124505 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-04-26BitmapEx: always convert 1-bit mask to alphaNoel Grandin
which is a step towards dropping masks, and only using alpha. Change-Id: I6882c0e5b1c805b0cda5a2eaadcbdd078d8566c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114622 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>