question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image.Clip when EllipseGeometry applied renders without anti-aliasing

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
x2boolcommented, Jan 6, 2019

Does not change anything for me 😦 (Avalonia v0.7.1-build1091-beta)

Original image:

255434285_122305

This is how it gets rendered with Skia on Mac (Retina):

image

Windows + Direct2D1:

screenshot_1

Windows + Skia:

screenshot_2

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found