Morph rendering with antialiasing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Morph rendering with antialiasing

Denis Kudriashov
Hello.

Is somebody implement morphs rendering with antialiasing?
Maybe it is already possible?

In practice I need circle button. But without antialiasing it seems really ugly.

If there is no existed solution. How do you think It can be implemented?

I know that fonts rendered with antialiasing. How its approach can be applyed for morphs?

I notice browser buttons (senders, implementors..) has rounded corners. And its nice rendered. What secrete? Can it be done for any morph corner rounding?



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Morph rendering with antialiasing

Henrik Sperre Johansen
  On 06.07.2010 22:28, Denis Kudriashov wrote:

> Hello.
>
> Is somebody implement morphs rendering with antialiasing?
> Maybe it is already possible?
>
> In practice I need circle button. But without antialiasing it seems
> really ugly.
>
> If there is no existed solution. How do you think It can be implemented?
>
> I know that fonts rendered with antialiasing. How its approach can be
> applyed for morphs?
>
> I notice browser buttons (senders, implementors..) has rounded
> corners. And its nice rendered. What secrete? Can it be done for any
> morph corner rounding
Using shape rendering primitives, no.
Balloon does AA, though you'll have problems with small thin lines
(which is why smaller sized TTFonts doesn't exactly look stellar).
The "secret" method used by both fonts and browser buttons is to instead
display AA'd bitmaps (ie. you use the alpha channel), instead of
rendering shapes.

Cheers,
Henry

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project