Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT and Antialiasing
SWT and Antialiasing [message #374988] Mon, 29 September 2003 18:36 Go to next message
Issam Mouslim is currently offline Issam MouslimFriend
Messages: 9
Registered: July 2009
Junior Member
does SWT support antialias while drawing with a GC?
drawOval for example

thanx
Re: SWT and Antialiasing [message #375016 is a reply to message #374988] Tue, 30 September 2003 08:04 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Issam Mouslim <imouslim@islandis.com> wrote:

> does SWT support antialias while drawing with a GC?
> drawOval for example
No, but with some effort you can create bindings for GDI+ that
supports antialiasing. :-)

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)


Konstantin Scheglov,
Google, Inc.
Re: SWT and Antialiasing [message #375021 is a reply to message #375016] Tue, 30 September 2003 11:43 Go to previous messageGo to next message
Ivan Markov is currently offline Ivan MarkovFriend
Messages: 61
Registered: July 2009
Member
...Or use the available bindings for Cairo if you use SWT/GTK2..

(Disclaimer: haven't tried them myself, but I know they are developing them
at cairographics.org).

"Konstantin Scheglov" <scheglov_ke@nlmk.ru> wrote in message
news:zxZJxlyhDHA.3056@fairy.ao.nlmk...
> Issam Mouslim <imouslim@islandis.com> wrote:
>
> > does SWT support antialias while drawing with a GC?
> > drawOval for example
> No, but with some effort you can create bindings for GDI+ that
> supports antialiasing. :-)
>
> --
> SY, Konstantin.
> Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: SWT and Antialiasing [message #375111 is a reply to message #374988] Wed, 01 October 2003 10:24 Go to previous messageGo to next message
Issam Mouslim is currently offline Issam MouslimFriend
Messages: 9
Registered: July 2009
Junior Member
what about using an AWT Panel withing SWT, then we can access Graphics2D...
is this solution reliable?

Panel pane = SWT_AWT.new_Panel(shell);

Graphics2D g = (Graphics2D) pane.getGraphics();
g.setRenderingHint(
RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
g.drawOval(50, 50, 50, 50);


"Issam Mouslim" <imouslim@islandis.com> a
Re: SWT and Antialiasing [message #466016 is a reply to message #374988] Wed, 28 December 2005 21:54 Go to previous message
Eclipse UserFriend
Originally posted by: jens_kanschik.freenet.de

Issam Mouslim wrote:
> does SWT support antialias while drawing with a GC?
> drawOval for example
>
> thanx
>
>
FYI : Since version 3.1. it does support antialias. Usage :

gc.setAntialias(SWT.ON); // for everything except of text
gc.setTextAntialias(SWT.ON); // for text

Regards.

--
Jens Kanschik
http://hypergraph.sourceforge.net
Previous Topic:Text widget which could display large text document
Next Topic:How to layout OK & Cancel button like in Preference dialog
Goto Forum:
  


Current Time: Fri Mar 29 10:24:06 GMT 2024

Powered by FUDForum. Page generated in 0.05073 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top