Issue 71737 - Repaint of metafile from charts with bitmaps show ugly black rectangles inbetween
Summary: Repaint of metafile from charts with bitmaps show ugly black rectangles inbet...
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: tony.galmiche.ooo
QA Contact: issues@graphics
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2006-11-19 14:00 UTC by tony.galmiche.ooo
Modified: 2013-02-24 21:18 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Custom2.xls (59.50 KB, application/vnd.ms-excel)
2006-11-19 14:00 UTC, tony.galmiche.ooo
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description tony.galmiche.ooo 2006-11-19 14:00:13 UTC
In Excel, displaying the charts is instantaneous. In Calc, the graph is re-drawn
each time the sheet is displayed or the data are changed.
Comment 1 tony.galmiche.ooo 2006-11-19 14:00:38 UTC
Created attachment 40729 [details]
Custom2.xls
Comment 2 utomo99 2006-11-20 03:59:35 UTC
Excel 2003 show the chart faster than OOo 2.1 Win xp
Comment 3 IngridvdM 2006-11-20 23:51:58 UTC
removed 'new chart:' from summary as the same effect can be seen already in the
regular version src680m124 or also src680m188.

->thb: Not sure whether you are the right person to fix this. During the repaint
of the metafile ugly black rectangles are shown. I assume that they are caused
by bitmap fillings which are used for shapes created in the underlying chart.
Comment 4 utomo99 2006-11-21 12:05:36 UTC
confirm
Comment 5 thb 2006-12-21 18:04:42 UTC
@tonygalmiche: seems that CWS aw024 improved that a lot - would you try
something >=m194, and report back if this has really been fixed?
Comment 6 tony.galmiche.ooo 2006-12-23 14:50:31 UTC
It's OK with Chart2m10 -> Close this issue ?
Comment 7 thb 2007-01-11 14:54:00 UTC
@bm: please add to chart2 CWS, and set to fixed - you seem to have solved this
en passant.
Comment 8 bjoern.milcke 2007-01-12 13:33:39 UTC
Please verify in Milestone 10.
Comment 9 bjoern.milcke 2007-01-12 13:34:29 UTC
setting target and to fixed.
Comment 10 bjoern.milcke 2007-01-12 13:39:54 UTC
->tonygalmiche: Hm, I am not quite sure what this issue is really about. I still
see black filled rectangles for a short while before the actual bitmap is drawn
in Milestone 10. I am using Windows via an rdesktop. Maybe that's the reason why
I still see them, but it looks like they are still painted. Or did I
misunderstand the issue?
Comment 11 bjoern.milcke 2007-01-12 13:52:47 UTC
I think it should be reopened. I would say it is not fixed. If you don't see the
black rectangle, I assume your display is just too fast.

->thb: I don't know who does the painting of meta-files, but I definitely see
the solid black rectangle when painting the replacement image. You can also check:

1. Create a Draw OLE
2. Insert a circle with a fill bitmap
3. Copy it several times (e.g. with middle mouse button) to get 20 objects
4. Move the deactivated OLE object around
=> You see the flashes. If you don't, add more shapes.
Comment 12 bjoern.milcke 2007-01-12 13:54:01 UTC
I checked in chart2mst3 Milestone 10 which is based on m195 (including aw024).
Comment 13 bjoern.milcke 2007-01-12 14:52:23 UTC
BTW., it looks like the problem only appears inside Writer and Calc. Not in Draw
(haven't checked Impress). So maybe there is just a flag missing for rendering?
Comment 14 thb 2007-01-12 15:05:28 UTC
@aw:looks like Writer & Calc don't buffer the output - can you confirm  (or even
fix) that?
Comment 15 Armin Le Grand 2007-04-18 16:05:01 UTC
AW: Yes, in Draw7Impress the paint is buffered (since m194, aw034).
AW: Discussed with BM, has nothing to do with OLE but with metafiles. Can also
be produced with 'paste special/as metafile' and some graphic objects. Trying to
reproduce on my side, at BMs machine it was remote desktop.
Comment 16 Armin Le Grand 2007-04-18 16:10:08 UTC
AW->THB: Happens with bitmap and gradient fillings in SW and SC -> this is the
optimized XOR magic of OutputDevice for Bitmaps and gradients when the target is
pixel-oriented.
Comment 17 tony.galmiche.ooo 2007-05-26 13:20:26 UTC
I confirm this problem with OOo 2.3 m213
it's very painful whith export dysplay on Linux (LTSP) or with FreeNX/Nomachine
or with Citrix or with Windows terminal server.
-> Issue Type = Deffect ?
Comment 18 thb 2007-06-25 09:53:52 UTC
@aw: isn't this gonna be fixed with your work on overlays in both calc and writer?
Comment 19 Armin Le Grand 2007-06-25 10:34:26 UTC
AW->THB: Not really. There is the possibility to solve it with primitives
indirectly when using a non-vcl-renderer later. When vcl renderer is used the
vcl-problem with the XOR gradient painting will show as it shows now.
But there is another chance for disappearing: In aw046, with complete
prerendering and overlay buffering, it may be gone anyways (is nominated now).
As long as it is not gone i think it should reside at the one who is closest to
the vcl XOR gradient painting code.

AW->tonygalmiche: It's not a defect at all, it's just an ugly repaint effect
from how VCL paints it's gradients (using XOR and some masking tricks). It
depends on the graphics driver of the system if this can be seen at all or not.
The 'trick' is used on all systems, but can only be seen on some as it seems.
Comment 20 thb 2007-07-09 11:06:26 UTC
Fixed with SRC680 m218 (indirectly with the overlay stuff from aw046). Please
verify.
Comment 21 thb 2007-07-09 11:07:26 UTC
.
Comment 22 Terry Yang 2012-08-28 09:42:19 UTC
Verify work fine with sample file on AOO 3.4.1
Close this bug.