Issue 28526 - Allow anti-aliasing of drawing objects
Summary: Allow anti-aliasing of drawing objects
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: viewing (show other issues)
Version: 680m34
Hardware: All All
: P3 Trivial with 184 votes (vote)
Target Milestone: OOo 3.1
Assignee: wolframgarten
QA Contact: issues@graphics
URL:
Keywords: oooqa, rfe_eval_ok
: 3937 35220 36254 38893 79276 83399 91531 91936 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-04-29 16:04 UTC by aaronforjesus
Modified: 2009-02-09 22:55 UTC (History)
22 users (show)

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


Attachments
Demo of OOo Draw versus Karbon14 and Sodipodi (155.82 KB, image/png)
2004-04-29 21:56 UTC, aaronforjesus
no flags Details
image exported by OOo draw without antialiasing (8.20 KB, image/png)
2008-03-20 06:51 UTC, gpolitis
no flags Details
Odd anti-aliasing for more complex shapes (19.66 KB, text/plain)
2009-01-31 23:05 UTC, i2initiatives
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description aaronforjesus 2004-04-29 16:04:48 UTC
I know that this is not an urgent request, but most modern drawing programs
allow you to have the objects drawn on the screen be anti-aliased (most as the
default setting). These programs include Sodipodi, Karbon14, Corel Draw, etc.
This also makes it easier to export objects as bitmaps because you can make what
you get on the screen be what you get when you export.
Comment 1 aaronforjesus 2004-04-29 21:56:10 UTC
Created attachment 14884 [details]
Demo of OOo Draw versus Karbon14 and Sodipodi
Comment 2 caiot1 2004-04-30 03:19:30 UTC
Agreed with you.

You can read the link "Priority", that came before the place you choose it.

I thought it's a P5.

OK?
Comment 3 wolframgarten 2004-04-30 07:42:10 UTC
Reassigned to Bettina.
Comment 4 lohmaier 2004-10-23 15:44:18 UTC
setting keywords, prio to default, reassigning according to new RFE-process.
Comment 5 lohmaier 2005-01-15 20:33:04 UTC
*** Issue 36254 has been marked as a duplicate of this issue. ***
Comment 6 lohmaier 2005-01-15 20:38:43 UTC
*** Issue 3937 has been marked as a duplicate of this issue. ***
Comment 7 lohmaier 2005-01-15 20:40:01 UTC
*** Issue 35220 has been marked as a duplicate of this issue. ***
Comment 8 chrispitude 2005-01-23 22:51:43 UTC
I just added a vote for this.  I use Visio 2003 heavily for digital logic 
schematic drawing.  I would love to see my group switch over to OpenOffice draw 
for the creation of these schematics.  My biggest obstacle is the lack of anti-
aliasing in exported bitmaps (I use .PNG) and in the on-screen working canvas.

For awhile, I tried using Visio to do the drawing, figuring I'd just use Visio 
to export the bitmaps.  However, I found that working with complex jaggy 
schematics for any length of time caused noticeable eyestrain, so I had to put 
OpenOffice Draw aside until this issue is addressed.

Otherwise, I'm very impressed with the program, and look forward to pushing it 
within my group once I'm able.

If anyone is interested, I can provide comparison screen captures from Visio 
and OpenOffice Draw.

 - Chris

Comment 9 bobharvey 2005-02-26 16:24:05 UTC
chrispitude: have you tried  dia (http://www.gnome.org/projects/dia/) ?
Comment 10 buurd 2006-01-12 13:03:17 UTC
This may cause my boss to revert back to Microsoft Office since this is a
question of pushing good (screen)graphics to our sales-staff when they are
representing our company to our customers and the idea of having different
office-suites in the company is not highly liked. The company have about 50
employees (about half is salesmen).
Comment 11 abutcher 2006-02-08 15:58:03 UTC
This issue is particularly important when giving presentations with impress.  
Having non-antialiased edges in diagrams/graphics looks sloppy when the text 
and everything else looks so professional. 
 
The only way around this is to save graphics out to a larger bitmap image then 
scale it down to the exact pixel size you want on your presentation with some 
image filtering.  Scaled bitmaps are also not bilinear filtered by impress 
which is why it is necessary to get the pixel size exact.  Needless to say this 
is a real hit on productivity. 
 
Comment 12 jeongkyu.kim 2006-02-09 00:47:05 UTC
> The only way around this is to save graphics out to a larger bitmap image then 
> scale it down to the exact pixel size you want on your presentation with some 
> image filtering. 

Until anti-aliasing is implemented, what about saving the presentation to pdf
and using acrobat to present it? It is not the best, but works for me.
Comment 13 mouse256 2006-03-09 08:04:20 UTC
Is it known when this feature will be implemented? This is a real blocker for me
to use OOo impress.
Comment 14 mouse256 2006-03-09 08:04:56 UTC
Is it known when this feature will be implemented? This is a real blocker for me
to use OOo impress.
Comment 15 thb 2006-03-27 15:58:55 UTC
Setting me and aw on Cc.
Comment 16 thb 2006-03-27 16:30:11 UTC
*** Issue 38893 has been marked as a duplicate of this issue. ***
Comment 17 buurd 2006-12-01 15:59:32 UTC
Last comment 27 mars? Is this a P5 issue???????? The bug is soon two years old
and is still marked as "new". 

So everyone please give this issue a big bump for attention so it atleast gets
updated here as "Revoled:WontFix" if that is the solution. 

Comment 18 thb 2006-12-01 16:21:53 UTC
@buurd: I beg your pardon? If you think this is easy and/or quick to fix, please
go ahead yourself. Otherwise, have a look at this
http://marketing.openoffice.org/ooocon2006/schedule/wednesday.html (the 'Moving
OOo to XCanvas, Step 2 – Draw and Impress' talk), and notice that there's a
long-term effort towards that goal.
Comment 19 buurd 2006-12-01 20:00:47 UTC
As far as I could see from this Issue there had been no progress. It was the
lack of information here I was complaining about mostly. 

It makes me very happy to se progress on this issue since it's "my users" number
one complaint about Openoffice (beside not being Microsoft Office). 

I'm sorry if I offended someone. It was not my intention.
Comment 20 pagalmes.lists 2007-03-07 14:50:12 UTC
Just my 2 cents: cairo 1.4.0 was just released:

http://cairographics.org/news/cairo-1.4.0
Comment 21 utomo99 2007-05-27 07:32:16 UTC
This issue has 129 votes. 
So I believe this need to be done by OOo. 
I hope developers will be assigned to this issue. 

Thanks

Comment 22 alex82 2007-05-27 08:00:25 UTC
Anti-aliasing of 3d objects would also be very useful! 
Comment 23 norbert2 2007-05-28 15:20:24 UTC
"Scaled bitmaps are also not bilinear filtered by impress ..."

Yes, I just have found this bug in Draw/Impress. When importing bitmap drawings,
this can be a really big "hit on productivity" since some things can hardly be
recognized.

But this is a separate issue, isn't it? Is there already an issue filed?
Comment 24 aziem 2007-07-06 06:07:47 UTC
*** Issue 79276 has been marked as a duplicate of this issue. ***
Comment 25 fexpop 2007-08-17 13:07:53 UTC
This is a real show stopper!

You just _can't_ give a professional looking presentation with all those ugly 
circles, lines etc. 

You can use Impress to prepare your presentations but to actually show them 
you'd better use PowerPoint Viewer. Very sad...

Hope the XCanvas transition makes some progress, I couldn't find much on this 
on the web.

- Felix
Comment 26 thb 2007-08-27 10:15:52 UTC
@fexpop: you've cairocanvas on Linux, and this here on Windows (should go into
2.4 code line RSN):
http://blogs.sun.com/GullFOSS/entry/update_directx_based_slideshow
Comment 27 fexpop 2007-08-27 10:53:14 UTC
@thb:

Thanks for answering! 
Could you please clarify on cairocanvas?

Is it supposed to already give me a good looking presentation on Linux (I'm 
using Debian/Sid, there is a /usr/lib/openoffice/program/cairocanvas.uno.so on 
my system)? If so, it doesn't work here. Do I need to activate cairocanvas 
somehow? Might there be additional libs missing?

I used to be a Linux-only user for 8 years now until I needed to show a 
PowerPoint presentation (not mine) a couple of weeks ago. I would really like 
*not* to boot into Windows again for the same presentation.

Kind regards,

Felix


 
Comment 28 fexpop 2007-08-27 15:16:43 UTC
On further investigation I found that there indeed seems to be _some_ 
antialiasing in presentation mode on Linux, but it's low quality. Exporting to 
PDF and then using acorread e.g. gives much nicer circles, lines etc.

Is there a way to enhance the quality, maybe some environment variable to tell 
OOo or cairo to produce better results?

Kind regards,

Felix
Comment 29 thb 2007-08-28 08:55:17 UTC
@fexpop: no - fwict, cairo produces excellent aa output. otoh, the data that
gets into the graphical output layers leaves something to desire, but there's
work under way to fix that. See e.g.
http://wiki.services.openoffice.org/wiki/DrawingPrimitives and my last year's
OOoCon talk about the drawing layer rework:
http://marketing.openoffice.org/ooocon2006/presentations/wednesday_g11.odp
Comment 30 kuropka 2007-10-16 13:34:02 UTC
I agree, this is really an important issue! Please raise it's priority.
Comment 31 queensparker 2007-10-16 14:49:02 UTC
Maybe this is an issue that doesn't bother a lot of 'home users' of OO but which
is critical to those who use it professionally. I am having to finish some
publications in other programmes simply to get around the image quality problems. 
Comment 32 carpediemag 2007-10-20 20:25:40 UTC
Anti-aliasing of objects and fonts is the only issue that keeps me from adopting
Impress, and from recommending it to others. As another commenter said, it's a
critical issue for those who want to use if professionally. 

Thanks for listening and for developing such excellent open source software.
It's really appreciated.
Comment 33 Armin Le Grand 2007-10-22 09:49:25 UTC
AW: As thb wrote multiple times, this needs to be - and is - fixed in a long
term issue for various reasons. If You are interested in what all ist to be
done, done and has been done, please take a sneak look at
'http://wiki.services.openoffice.org/wiki/DrawingPrimitives' and get an
impression. Please keep patient, we are at it. HTH.
Comment 34 kuropka 2007-10-22 10:36:15 UTC
Thank you for the link, sounds very good what's written there. I am really
looking forward for the next big release!
Comment 35 norbert2 2007-10-30 22:45:37 UTC
Bitmap scaling is handled by OOo bad, too: issue 83102
Comment 36 sandraalves 2008-03-20 06:28:36 UTC
We have 190 votes. There are any news? Fix will come on OOo 3.0?
Comment 37 gpolitis 2008-03-20 06:51:32 UTC
Created attachment 52228 [details]
image exported by OOo draw without antialiasing
Comment 38 gpolitis 2008-03-20 06:52:42 UTC
Antialiasing needs to apply not only to on-screen display, but to printing and 
exported images. I drew some graphics in OOo draw and exported to png 
(attached, "fortune.png"). It looks terrible without antialiasing.
Comment 39 clippka 2008-03-20 09:34:28 UTC
We are in fact working for this for a very long time now. The first step, using
higher resolution for geometry all the way from the model to the actual
rendering is almost done, see f.e. issue 39532. This work also allow to use
hardware accelerated drawing which is a must for performance when you want AA.
This also gives an overall better geometry, for example a circle now really
looks like a circle not like an egg and there are no more small difference
between the filling and the stroke geometry of a shape. For unix and mac I have
already seen working AA but this is a feature we have to implement for all
supported platforms differently. Hardest part will be on windows since gdi++
sucks big time and it needs directx experience to write code that does not crash
on people that do not update their drivers on a daily basis :-(
I can not confirm or say that it will all be in 3.0 but we are working hard on it.
Comment 40 tayroni 2008-03-21 01:20:13 UTC
@cl: Can you indicate the location of OOo's source code with antialiasing for
off-the-record builds on linux/mac?
Your work on OOo is really apreciated. I really want to test the new
antialiasing habilities.
Comment 41 Armin Le Grand 2008-03-31 03:43:40 UTC
AW->CL: Thanks for giving the infos during my vacation, much appreciated.
AW->tayroni: Even with all the aw033 changes, You get AA in linux versions for
now; nothing really to test. It's still too early.

All: We are working hard on this and we appreciate the votes, this gives us
urgently needed hints what is wanted. Unfortunately, this is not a simple 'fix'
but involves changing/reimplementing the whiole model/view/(some)controller
stuff. There are many steps involved, starting with changing model data from
using 100th mm integer to double precision floats (and all users of that
data...) to completely new paint preparations using primitives. If You want to
get an impression what this means, feel free to read at
http://wiki.services.openoffice.org/wiki/DrawingPrimitives...
Comment 42 tayroni 2008-05-05 06:57:31 UTC
"AW->tayroni: Even with all the aw033 changes, You get AA in linux versions for
now; nothing really to test."

Next version of OOo will have AA on linux?
Comment 43 Armin Le Grand 2008-05-05 11:11:53 UTC
AW: Unfortunately it will not make it in 3.0. Time frames were too tight, so it
will not be in the beta. Without public beta i will not risk to add it due to
the massive amout of changes. If You want to try it currently You may look at
CWS aw033 and play around with it. But be warned: aw033 has 26 modules added and
10000ds of changed lines, so You may need to build the platform You need
completely and from scratch. aw033 and thus AA is scheduled for 3.1 now.
Comment 44 randall311 2008-06-02 18:19:32 UTC
I just voted for this as well, in this day and age (and with the Cairo library
readily available) anti-aliasing is an absolute must have! 
Comment 45 clippka 2008-06-26 16:29:22 UTC
cl->aw: since you work on this feature, pleas take over administrating this issue
Comment 46 jbf.faure 2008-07-05 19:27:08 UTC
Add me to CC.
Comment 47 clippka 2008-07-15 09:42:06 UTC
*** Issue 91531 has been marked as a duplicate of this issue. ***
Comment 48 IngridvdM 2008-07-22 14:02:35 UTC
*** Issue 91936 has been marked as a duplicate of this issue. ***
Comment 49 gleppert 2008-09-05 10:47:11 UTC
I have tested Anti-aliasing using the developer build DEV300m30 on WindowsXP
that has already integrated the child workspace aw033. However, as it seems,
nothing has changed: All drawing objects look aliased as before.
Was aw033 only the first step to get aa done? Will there be aa for drawing
objects in version 3.1?

Thank you for your good work!
Gerald
Comment 50 Armin Le Grand 2008-09-05 13:31:47 UTC
AW->gleppert: AA is not activated by default. This is because for Win, it is not
yet working (since it is not easy with MemoryDevices, we are looking for GDI+
currently in a combination of a primitive renderer for canvas and a GDI+ canvas
as target). On all Unix based systems with XRender extension (and for 3D since
we use an own renderer) it works pretty well (including Mac) using the default
VCL renderer.

To activate, You need to:
1. rm -r <instdir>/OpenOffice*/*/user/registry/cache/
2. then edit <instdir>/share/registry/schema/org/openoffice/Office/Common.xcs,
set AntiAliasing to 'true'

We will make AA the default when we have a working solution for Win.
HTH for the moment, have fun testing it. Be aware that it's not yet final, though...
Comment 51 gerymate 2008-09-10 00:00:37 UTC
Will it work with printed output?

Regards,
Gery Mate
Comment 52 Armin Le Grand 2008-10-07 11:38:01 UTC
*** Issue 83399 has been marked as a duplicate of this issue. ***
Comment 53 trajj 2008-11-10 19:14:46 UTC
My understanding is that all printed output is anti-aliased. The issue is with
what is rendered on the computer screen. 
Comment 54 gpolitis 2008-11-10 21:50:57 UTC
And exported images need antialiasing too. See my attachment above.
Comment 55 Armin Le Grand 2008-12-10 15:30:36 UTC
AW: AA for DrawingObjects (see title) now implemented for all main systems,
including WIN32 in aw059. Adding to CWS aw059 (target 3.1) and setting to fixed.
P.S.: All other things like e.g. printing may need their own discussion and thus
need an extra task.
Comment 56 Armin Le Grand 2008-12-10 16:13:41 UTC
AW->WG: This is the common, global task. To review, try the CWS on various systems.
Comment 57 Armin Le Grand 2008-12-12 16:43:03 UTC
AW: To the printer and other stuff AA'ed questions: It will depend HOW the
DrawingLayer gets painted. Currently, still the path over the MetaFile is used,
so i am not sure about different scenarios (PostScript, etc...). For
bitmap-based exports: It will use AA when set in tools/optins/view. Just
exported some DrawingLayer objects to bmp to check.
The good news for printing is: It will now - with primitives - be possible to
write renderers for e.g. PS output or others. There is no interface for this,
though, currently.
You will be able to play around with this in 3.1, as it looks :-)
Comment 58 Armin Le Grand 2008-12-12 17:20:17 UTC
AW: To the printer and other stuff AA'ed questions: It will depend HOW the
DrawingLayer gets painted. Currently, still the path over the MetaFile is used,
so i am not sure about different scenarios (PostScript, etc...). For
bitmap-based exports: It will use AA when set in tools/optins/view. Just
exported some DrawingLayer objects to bmp to check.
The good news for printing is: It will now - with primitives - be possible to
write renderers for e.g. PS output or others. There is no interface for this,
though, currently.
You will be able to play around with this in 3.1, as it looks :-)
Comment 59 wolframgarten 2008-12-16 10:40:47 UTC
Verified in CWS.
Comment 60 trajj 2008-12-17 19:23:26 UTC
Quick question: Are fonts anti-aliased as well or just drawing objects?
Comment 61 hdu@apache.org 2008-12-18 07:47:01 UTC
> Quick question: Are fonts anti-aliased as well or just drawing objects?

As far as I know OOo always supported antialiased fonts.
Comment 62 dengel 2009-01-03 14:17:11 UTC
I'm using the DEV300m37 build on Ubuntu 8.10. I did set the AntiaAliasing
property in Common.xcs as described. It works in the Impress slide view, but
when I start the slide show via F5, the graphics are not anti-aliased. I'd
appreciate if someone could tell me how to enable anti-aliasing for the actual
presentation?
Comment 63 wolframgarten 2009-01-05 07:39:29 UTC
@dengel: the changes that have been made are for edit view only. Anti-Aliasing
for slideshow is another area..
Comment 64 wolframgarten 2009-01-19 12:09:53 UTC
Tested in m39, closed.
Comment 65 Armin Le Grand 2009-01-19 12:27:21 UTC
AW->AllInCopy: As You can see, it's in 3.1 aka DEV300 m39. Get it, try it,
(enjoy it :-), check it please! We have not too long for 3.1 code freeze to fix
evtl. regressions or failures. We need your help here to not oversee stuff which
may be a problem for potential 3.1 users.
Use (http://download.openoffice.org/test/other.html#DEV300_m39) for accessing...
Comment 66 bryancole 2009-01-20 17:17:27 UTC
I just tested the DEV300 m39 build. The rendering is awsome (great!), but bitmap
export seems to be broken. I tried to file a new issue for this, but I couldn't
see how to specify this build/dev version.
Comment 67 Armin Le Grand 2009-01-20 17:32:57 UTC
AW->bryancole: Thanks for Your feedback. I just checked, there is no entry yet
for DEV300 m39 (last is m38). I'm asking a person i think could be responsible
for that. In the meantime, please ude DEV300 m38, i'll change it later.
Maybe Your task has to do with some already seen stuff, but since You never
know, please file an issue for it (to me :-). Thanks in advance!
Comment 68 gerymate 2009-01-20 23:22:55 UTC
I can say the same as bryancole. Anti-aliasing in DEV300 m39 is beautiful. I
have found only one last issue remaining: the hard edges of rotated bitmap
images are still somewhat "pixelized". In every other aspects: glorious progress!
Comment 69 norbert2 2009-01-21 06:37:30 UTC
The bitmap problem is Issue 83102. In my opinion this bug should also be fixed
for OOo 3.1 in order to have good display of all object types.

Comment 70 norbert2 2009-01-21 06:46:19 UTC
Since according to wg's comment this issue does not fix Anti-Aliasing for
Slideshow I have filed Issue 98252 therefor.
Comment 71 i2initiatives 2009-01-31 23:05:06 UTC
Created attachment 59799 [details]
Odd anti-aliasing for more complex shapes
Comment 72 i2initiatives 2009-01-31 23:12:00 UTC
Please see the attached image for examples of some odd anti-aliasing with
complex shapes (made in Draw, DEV300 m39, Windows build)
Comment 73 Armin Le Grand 2009-02-01 13:47:19 UTC
AW->ivantm: Thanks for digging this out, but this is known. Reason is that for
some AutoShapes (You showed some) the geometry is defined with rather bad
polygon geometry (no curves, not really straight, check with convert to
polygon). Please wrinte an issue for this to sj who is responsible for those
shapes. This has basically nothing to do with AAing, though.