office-gobmx/cppcanvas
Noel Grandin 81994cb2b8 Convert internal vcl bitmap formats transparency->alpha (II)
(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>
2023-07-25 08:38:12 +02:00
..
inc/pch
qa
source
CppunitTest_cppcanvas_emfplus.mk
CppunitTest_cppcanvas_test.mk
IwyuFilter_cppcanvas.yaml
Library_cppcanvas.mk
Library_mtfrenderer.mk
Makefile
Module_cppcanvas.mk
README.md

C++ Helper Classes for canvas

Helper C++ classes for canvas, plus a GDIMetaFile-to-XCanvas converter.

EMF+

For cppcanvas/source/mtfrenderer, see the README.md in vcl (the EMF+ part).