summaryrefslogtreecommitdiff
path: root/vcl/source/graphic/GraphicID.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-11-07 12:34:21 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-11-08 05:35:17 +0100
commitef261d4e80e784519a94b23f78ca4fb42d8bcbd9 (patch)
treee89926adb0527be0f75e951c0c5942647e55025f /vcl/source/graphic/GraphicID.cxx
parentd251b5b65a4b250f97542a2a26c14081724aebc0 (diff)
Factor out conversion of awt::XBitmap to BitmapEx in vcl
As a step to unify and deduplicate this in several places. Three functional changes added to the new vcl::GetBitmal function: 1. The mask is inverted from transparency to alpha, as done in VCLUnoHelper::GetBitmap (toolkit/source/helper/vclunohelper.cxx) since commit 81994cb2b8b32453a92bcb011830fcb884f22ff3 (Convert internal vcl bitmap formats transparency->alpha (II), 2023-07-25). 2. When awt::XBitmap::getMaskDIB returns no mask, use ReadDIBBitmapEx to also try to read the alpha inside the data in awt::XBitmap::getDIB, as done in InsertSubMenuItems (framework/source/fwe/helper/actiontriggerhelper.cxx). 3. As an optimization, query awt::XBitmap for graphic::XGraphic before all the bit processing. Change-Id: I686751664a5bd612bda1d446b200a9386b1991b4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176185 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'vcl/source/graphic/GraphicID.cxx')
0 files changed, 0 insertions, 0 deletions