Reputation: 17445
How can I smooth a Graphics
object in C# ? To be more precise, I need to run a smoothing at a very precise moment of my Graphics
object generation, on the whole object. The image is coloured.
I am flexible in terms of input classes (Graphics
, etc..). I just suggested Graphics
at it is a central class for image manipulations in C#.
Graphics.SmoothingMode
is out of context for what I need to do and I imagine WU's algorithm only applies to drawing lines in greyscale.
Upvotes: 0
Views: 3564
Reputation: 4172
Have a look at the image processing features of AForge.Net. It is an open source framework that includes a lot of useful image processing capabilities. You will find many smoothing filters among them.
Upvotes: 1
Reputation: 32650
I think you used the wrong words to describe your problem. Anti aliasing refers to (as Hand mentioned) the point in time when individual objects are drawn for the first time. For instance, when drawing a diagonal line on an empty surface.
You already have an image, and you want that image to be smoothed. I suggest you detect edges in the image using a standard algorithm, then smooth those edges. I am not familiar with the exact process to do this myself, sadly.
Upvotes: 1