I thought shape clipping with anti-aliasing was supported natively by ios 
and android (since android 4.4 or so) at least.
And what is the problem with adding a getClipShape() method exatly? if 
there is a setClip(Shape) method, it makes sense to have the counterpart 
getClipShape() 
method to know what is the current clipping applied... So it would be nice 
to have a getClipShape() method that returns a Rectangle shape if the 
current clipping is a rectangle and a GeneralPath Shape if it is another 
shape...


On Wednesday, September 12, 2018 at 5:41:38 AM UTC+2, Shai Almog wrote:

> Shaped clipping should work everywhere but the problem with it is 
> aliasing. It's inherently aliased so simple backgrounds look horrible. We 
> only use it for fallbacks. You can use the sample in RoundRectBorder to see 
> how we used shaped clipping as fallback.
> There is a problem with adding a getClip() generally we recommend 
> restoring the clip to the standard rectangle clipping.
>
> Alpha isn't enough for shadow effect, see the round rect border. We use a 
> gradient and blur effect to produce a shadow.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/af1a1901-b74f-4fa8-b90f-127d7dd7863a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to