Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GDI+ usage
GDI+ usage [message #207057] Tue, 10 January 2006 13:42 Go to next message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

The SWT-FAQ states that Eclipse 3.1 requires GDI+ installed on the OS.
GDI+ comes with Windows XP and Windows Server 2003, on other Windows
platforms you
have to install it manually.

So my questions are:
Is GDI+ generally required by the Eclipse-Plattform?
I am not getting an exception on Win2000 w/o GDI+ before it comes to
anti-aliasing (e.g.) in GEF.

Anyways, how can i detect if the user has this library installed?

Regards, Ingo
Re: GDI+ usage [message #207070 is a reply to message #207057] Tue, 10 January 2006 15:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The platform does not make any use of the advanced graphics API introduced
in 3.1.

To see if it is available, you can construct a GC, call setAdvanced, and
then query using getAdvanced().

"Ingo Koch" <ingo.koch[nospam]@sap.com> wrote in message
news:dq0dkl$pv7$1@utils.eclipse.org...
> The SWT-FAQ states that Eclipse 3.1 requires GDI+ installed on the OS.
> GDI+ comes with Windows XP and Windows Server 2003, on other Windows
> platforms you
> have to install it manually.
>
> So my questions are:
> Is GDI+ generally required by the Eclipse-Plattform?
> I am not getting an exception on Win2000 w/o GDI+ before it comes to
> anti-aliasing (e.g.) in GEF.
>
> Anyways, how can i detect if the user has this library installed?
>
> Regards, Ingo
>
>
Re: GDI+ usage [message #207151 is a reply to message #207070] Wed, 11 January 2006 11:43 Go to previous message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Thank you.

if anyone is interested in the code:

private static int advancedGraphicsEnabled = -1;
public static boolean isAdvancedGraphicsEnabled()
{

if (advancedGraphicsEnabled != -1)
return advancedGraphicsEnabled == 1 ? true:false;


GC gc = new GC(Display.getCurrent());
gc.setAdvanced(true);

advancedGraphicsEnabled = gc.getAdvanced()? 1:0;

gc.dispose();

return advancedGraphicsEnabled == 1 ? true:false;
}

Regards, Ingo


"Randy Hudson" <none@us.ibm.com> wrote in message
news:dq0l60$eua$1@utils.eclipse.org...
> The platform does not make any use of the advanced graphics API introduced
> in 3.1.
>
> To see if it is available, you can construct a GC, call setAdvanced, and
> then query using getAdvanced().
>
> "Ingo Koch" <ingo.koch[nospam]@sap.com> wrote in message
> news:dq0dkl$pv7$1@utils.eclipse.org...
> > The SWT-FAQ states that Eclipse 3.1 requires GDI+ installed on the OS.
> > GDI+ comes with Windows XP and Windows Server 2003, on other Windows
> > platforms you
> > have to install it manually.
> >
> > So my questions are:
> > Is GDI+ generally required by the Eclipse-Plattform?
> > I am not getting an exception on Win2000 w/o GDI+ before it comes to
> > anti-aliasing (e.g.) in GEF.
> >
> > Anyways, how can i detect if the user has this library installed?
> >
> > Regards, Ingo
> >
> >
>
>
Previous Topic:Help me to disable BuilAll MenuItem from Project Menu
Next Topic:starting out with GEF
Goto Forum:
  


Current Time: Thu Apr 25 15:22:27 GMT 2024

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

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

Back to the top