Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Question to Buttons with Regions

If you're interested in drawing things manually, GC has a setAntialias(SWT.ON) method that you could try?
Not sure how well it works on Linux. Never tried it myself.

ex snippet353:78

Article on GC.
https://www.eclipse.org/articles/Article-SWT-graphics/SWT_graphics.html




---
Leo Ufimtsev
Software Engineer, Eclipse team.
Toronto, Canada

Red Hat, Inc.

On Fri, Dec 2, 2016 at 7:45 AM, Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:
Friends of SWT,

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet294.java
demonstrates how to create a non-retangular button, at least for
window (SWT Linux seems to ignore that, see Bug 508599).

Unfortunately the corners of such a button are pixelated, see screenshot.

Is there a way to make the corners smooth with antialiasing? If not,
is there already a feature request open for this?

Best regards, Lars

--
Eclipse Platform UI and e4 project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top