Bug 136195 - Background bitmaps are treated differently depending on whether Skia or Hardware rendering is selected
Summary: Background bitmaps are treated differently depending on whether Skia or Hardw...
Status: RESOLVED DUPLICATE of bug 136171
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Skia
  Show dependency treegraph
 
Reported: 2020-08-27 16:26 UTC by xordevoreaux
Modified: 2020-09-09 10:10 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
10x10 background (121 bytes, image/png)
2020-08-27 16:27 UTC, xordevoreaux
Details
1024x1024 background (6.39 KB, image/png)
2020-08-27 16:28 UTC, xordevoreaux
Details
testing document (9.31 KB, application/vnd.oasis.opendocument.graphics)
2020-08-27 16:28 UTC, xordevoreaux
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***