-3

In a project I've loaded some images. However, in particular, Ellipses look quite ugly. As though an edge of ellipse shape is greatly indented. I know this is common issue for ellipsoid shapes.

So is there a way to improve edges?

TylerH
  • 20,799
  • 66
  • 75
  • 101

1 Answers1

0

A couple of suggestions

  • Check the DPI of your image files. The default is often 72, whereas WPF works best with DPI = 96, otherwise it will try to scale the image.

  • Set the RenderOptions.BitmapScalingMode of your image control - see this answer https://stackoverflow.com/a/2734431/967885.

If you want really smooth curves though, ditch the bitmaps and use a WPF Geometry (e.g. Path) instead.

Peregrine
  • 4,287
  • 3
  • 17
  • 34
  • The pics were created with a standard DPI =96. OK, thanks for an advice. I'll try to follow. About "paths" you are right, "paths" images look much better. I knew it. – DeputyOfCopyPaster Oct 18 '18 at 07:52