Image.Clip when EllipseGeometry applied renders without anti-aliasing
See original GitHub issueThe following code produces circular image with visible pixelated edges, anti-aliasing is not applied:
<Image
Source="{Binding Avatar}"
Width="32"
Height="32">
<Image.Clip>
<EllipseGeometry Rect="0,0,32,32" />
</Image.Clip>
</Image>
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to remove anti aliasing in render
i am rendering out this image and I have anti-aliasing along my edges. My noise threshold and min samples are set to 0,...
Read more >c# - Possible to have anti-aliasing when drawing a clipped ...
I'll like to share my solution, which is based on the selected answer. This code Resize and Crop an image into a Circle...
Read more >shape-rendering - SVG: Scalable Vector Graphics | MDN
To achieve crisp edges, the user agent might turn off anti-aliasing for all lines and curves or possibly just for straight lines which...
Read more >Image antialiasing — Matplotlib 3.7.2 documentation
The default image interpolation in Matplotlib is 'antialiased', and it is applied to the data. This uses a hanning interpolation on the data...
Read more >Question about rendering in mantra with no "antialiasing"
Hey folks, I have a scene set up that generates ascii art given a 3d model. Basically it scatters font primitives across a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
antialias is set to false by default https://docs.microsoft.com/en-us/dotnet/api/skiasharp.skcanvas.clippath?view=skiasharp-1.68.0
This needs to be changed here: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Skia/Avalonia.Skia/DrawingContextImpl.cs#L272
Does not change anything for me 😦 (Avalonia v0.7.1-build1091-beta)
Original image:
This is how it gets rendered with Skia on Mac (Retina):
Windows + Direct2D1:
Windows + Skia: