reportlab-4.2.0 can support bitmap transparency #400
replabrobin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If using reportlab[pycairo] (ie cairo backend) the bitmap output can use transparency. An example is in tests/test_graphics_images.py. It looks like this; we changed the background and backendFmt using d._renderPM_backendFmt = 'ARGB32'
and d._renderPM_bg = toColor('white').clone(alpha=0) (they could also be passed into save as extra keywords).
Beta Was this translation helpful? Give feedback.
All reactions