GDI+ usage [message #207057] |
Tue, 10 January 2006 13:42 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02598 seconds