Bug 142660 - [EMF] support SRCAND and SRCPAINT ROPs in StretchDIBits with StretchMode set to HALFTONE
Summary: [EMF] support SRCAND and SRCPAINT ROPs in StretchDIBits with StretchMode set ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.2.0.0 alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2021-06-04 16:54 UTC by Valek Filippov
Modified: 2023-09-23 19:56 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
EMF sample (30.86 KB, image/x-emf)
2021-06-04 16:55 UTC, Valek Filippov
Details
How it should look like (14.28 KB, image/png)
2021-06-04 16:56 UTC, Valek Filippov
Details
EMF using LO v.24.2 (113.95 KB, image/png)
2023-09-23 19:55 UTC, Kira Tubo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valek Filippov 2021-06-04 16:54:09 UTC
Description:
LO doesn't handle properly StretchDIBits with SRCAND and SRCPAINT ROPs.
The same two DIBs with BLACKONWHITE and WHITEONBLACK modes used before them are rendered to the correct image. 

Steps to Reproduce:
Open attached EMF sample.

Actual Results:
LO shows empty image.

Expected Results:
It should show a rectangle with lightblue/white gradient


Reproducible: Always


User Profile Reset: No



Additional Info:
This is minified from the sample in tdf#34454.
This problem is similar to tdf#113673.
Comment 1 Valek Filippov 2021-06-04 16:55:28 UTC
Created attachment 172628 [details]
EMF sample

This is from the "Image1.emf" in the DOCX version of the sample from tdf#34454
Comment 2 Valek Filippov 2021-06-04 16:56:23 UTC
Created attachment 172629 [details]
How it should look like
Comment 3 Valek Filippov 2021-06-04 16:57:37 UTC
ROPs described in [MS-WMF] section 2.1.1.31

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-wmf/1605dd68-a635-4639-ab81-99ff3e3fc5a3
Comment 4 Roman Kuznetsov 2021-06-14 19:29:35 UTC
confirm in

Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 31ed81ea71a20ec119805f66a42f99b3f80d2dc5
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL
Comment 5 QA Administrators 2023-06-15 03:15:08 UTC Comment hidden (obsolete)
Comment 6 Kira Tubo 2023-09-23 19:55:49 UTC
Created attachment 189780 [details]
EMF using LO v.24.2

This looks fixed per current daily master build. 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 486ae5db6987411d5e394de94b2b077099d03856
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 7 Kira Tubo 2023-09-23 19:56:17 UTC
Closing ticket as WORKSFORME due to above^^