I am interested in the possibility of doing anti-aliased (AA) shape clipping so I investigated a bit more and yes, some graphics libraries are able to perform AA shape clipping "efficiently" (it probably affect performances a bit compared to aliased shape clipping). For example SKIA, that serves as the graphic engine for Android and Flutter, has an AA argument for each of its clip methods (https://docs.microsoft.com/en-us/dotnet/api/skiasharp.skcanvas.clippath?view=skiasharp-1.60.3), reason why Android and Flutter (https://docs.flutter.io/flutter/dart-ui/Canvas/clipPath.html) are both able to support AA clipping. I just posted this FYI, to fill the gap in your familiarity, as supporting AA shape cliping on targets that do not support it nativelly (like JavaSE) is probably not possible at the CN1 level considering that CN1 relly on the graphic engine used by each platform and do not use its own like some other cross platforms frameworks do (like Skia for Flutter or Cairo for OpenFL).
On Saturday, September 15, 2018 at 6:56:15 AM UTC+2, Shai Almog wrote: > Shaped clipping is slow so the assumption is that it's used for a very > specific task and discarded back to regular rectangular clipping. So we > don't want code that would pass a shape clipped buffer around, unaware. > > We only support aliased shaped clipping at this time. Swing doesn't > support anti-aliased shaped clipping as far as I know as a clip is a binary > operation there. We use OpenGL for the rendering on iOS not the builtin > drawing primitives. I'm unfamiliar with an efficient anti-aliased shaped > clip although that might be a gap in my familiarity. > -- 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/3d6a19af-d207-4f5a-9ded-7829ebf5cca3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
