Bug 136195

Summary: Background bitmaps are treated differently depending on whether Skia or Hardware rendering is selected
Product: LibreOffice Reporter: xordevoreaux
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: xordevoreaux
Priority: medium    
Version: 7.1.0.0.alpha0+   
Hardware: All   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 129062    
Attachments: 10x10 background
1024x1024 background
testing document

Description xordevoreaux 2020-08-27 16:26:56 UTC
Description:
Setting color as a background and exporting to PNG is useless because it creates an aliased white line top and left (which is Bug 117160).

To get around this, I use a color bitmap, and usually I can use a 10x10 pixel square and everything's fine.

Today I've noticed that I must use a color bitmap the size of the canvas, or nothing shows up.

The difference is hardware versus skia rendering.
In hardware rendering, a 10x10 pixel bitmap will tile, flooding the entire canvas with that color.  

With Skia rendering, that fails. I must use a bitmap as large as the canvas.

Steps to Reproduce:
Hardware rendering:

1. Launch LO
2. Set the rendering technique in preferences to be hardware and restart LO.
3. Create a new LO Draw document (leave the dimensions default)
4. Set the margins to None
5. Import a 10x10 black (or otherwise colored) bitmap.

SKIA rendering:
1. Launch LO
2. Set the rendering technique in preferences to be Skia and restart LO.
3. Create a new LO Draw document (leave the dimensions default)
4. Set the margins to None
5. Import a 10x10 black (or otherwise colored) bitmap.

Actual Results:
With hardware rendering, the canvas floods with the bitmap because the bitmap tiles. I like that because it keeps my file size down.

With SKIA rendering, on the other hand, that 10x10 pixel background can't even be seen.

I must load a 1024x1024 background to get the canvas to flood.

Expected Results:
Regarding of rendering technique, the bitmap background should be treated the same way, either tiling or not tiling, rather than forcing me to use a different bitmap for the background just because I changed LO's rendering technique.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 6640d7f405d2970ba2825a9455926cc803284d01
CPU threads: 8; OS: Windows 10.0 Build 20201; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 1 xordevoreaux 2020-08-27 16:27:39 UTC
Created attachment 164764 [details]
10x10 background

10x10 background imported as the background bitmap.
Comment 2 xordevoreaux 2020-08-27 16:28:13 UTC
Created attachment 164766 [details]
1024x1024 background

1024x1024 background used as the imported background bitmap.
Comment 3 xordevoreaux 2020-08-27 16:28:52 UTC
Created attachment 164767 [details]
testing document

testing document
Comment 4 Luboš Luňák 2020-09-09 10:10:58 UTC

*** This bug has been marked as a duplicate of bug 136171 ***