diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2022-05-27 19:08:41 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2022-05-29 00:16:21 +0200 |
commit | 6959a18d1a8fea4d65498083dc3ba05f640d0f39 (patch) | |
tree | 0dda9d5a0d75ae5ff3cce3c455b1c71061cc2254 /stoc | |
parent | 8c4ca609c532b01c880d9803ba655c5688e5f0f1 (diff) |
tdf#144601 Qt fix creating QImage with alpha mask
Rechecking the QImage documentation, this actually can be easily
done; no more bit twiddling, which I got wrong to begin with.
LO's alpha mask is inverted to Qt's expectations, but we have
invertPixels() and then apply it with setAlphaChannel(). And we
can even set the fAlpha using setOpacity()!
Change-Id: If2030d3f87d3a4698d1cd9af005d307c2ee63061
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135044
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Tested-by: Jenkins
Diffstat (limited to 'stoc')
0 files changed, 0 insertions, 0 deletions