Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Line width
Line width [message #556894] Fri, 03 September 2010 04:42 Go to next message
Jean Bovet is currently offline Jean BovetFriend
Messages: 34
Registered: September 2009
Member
Hi,

I am trying to draw some shapes in the newly supported Canvas for RAP
(thanks so much guys for that!) and I am having a little problem with
the line width: is there a way to instruct the Canvas to draw a line
with 1 pixel? It works fine when I run my application using RCP/SWT but
when running RAP on a browser, the line is about 2 pixels wide and a
bit fuzzy. Any help would be greatly appreciated.

Regards,

Jean
Re: Line width [message #556898 is a reply to message #556894] Fri, 03 September 2010 05:46 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Jean,

currently, it's not possible to turn off the anti-aliasing. See bug:
323021: Implement GC#setAntialias
https://bugs.eclipse.org/bugs/show_bug.cgi?id=323021
It's not possible at all to turn off the anti-aliasing in HTML <canvas>
element. Keep an eye on this bug for further progress on this issue.

Best,
Ivan

On 09/03/2010 7:42 AM, Jean Bovet wrote:
> Hi,
>
> I am trying to draw some shapes in the newly supported Canvas for RAP
> (thanks so much guys for that!) and I am having a little problem with
> the line width: is there a way to instruct the Canvas to draw a line
> with 1 pixel? It works fine when I run my application using RCP/SWT
> but when running RAP on a browser, the line is about 2 pixels wide and
> a bit fuzzy. Any help would be greatly appreciated.
>
> Regards,
>
> Jean
>
Re: Line width [message #556933 is a reply to message #556898] Fri, 03 September 2010 08:48 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
>> with 1 pixel? It works fine when I run my application using RCP/SWT
>> but when running RAP on a browser, the line is about 2 pixels wide and
>> a bit fuzzy. Any help would be greatly appreciated.

Also check that you are not zoomed in with your browser, as this might
make it even more "fuzzy".

Greetings,
Tim
Re: Line width [message #557012 is a reply to message #556898] Fri, 03 September 2010 15:24 Go to previous message
Jean Bovet is currently offline Jean BovetFriend
Messages: 34
Registered: September 2009
Member
Thanks Ivan, I will keep an eye on that one.

Regards,

Jean

On 2010-09-02 22:46:43 -0700, Ivan Furnadjiev <ivan@eclipsesource.com> said:

> Hi Jean,
>
> currently, it's not possible to turn off the anti-aliasing. See bug:
> 323021: Implement GC#setAntialias
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=323021
> It's not possible at all to turn off the anti-aliasing in HTML <canvas>
> element. Keep an eye on this bug for further progress on this issue.
>
> Best,
> Ivan
>
> On 09/03/2010 7:42 AM, Jean Bovet wrote:
>> Hi,
>>
>> I am trying to draw some shapes in the newly supported Canvas for RAP
>> (thanks so much guys for that!) and I am having a little problem with
>> the line width: is there a way to instruct the Canvas to draw a line
>> with 1 pixel? It works fine when I run my application using RCP/SWT but
>> when running RAP on a browser, the line is about 2 pixels wide and a
>> bit fuzzy. Any help would be greatly appreciated.
>>
>> Regards,
>>
>> Jean
Previous Topic:Qooxdoo NumberFormat
Next Topic:Overriding Logo works in Eclipse IDE but not when deployed
Goto Forum:
  


Current Time: Thu Mar 28 08:24:19 GMT 2024

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

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

Back to the top