I use WPF for the image resizing pipeline that works great under .NET v3.5. I just upgraded the project to the target version 4.0, and now all my changed images are very smooth. None of the image pipeline code has changed.
I use the BitmapImage, DrawingVisual, DrawingContext, RenderTargetBitmap, BitmapEncoderand BitmapFrame, but I do not see any properties associated with the smoothing. GDI + had a bunch of settings, so I guess something is missing.
Update: it looks like all the solutions I've seen assume a Window object or XAML environment. This is done inside a Windows service that does not have a user interface. I need a way to programmatically affect this parameter.
I specifically switched from GDI + to WPF, because GDI + has memory leaks in lengthy processes like services and web applications.
source
share