I'm trying to rotate a Bitmap.
I create a bigger one that will be used as a canvas on which the rotated one will be painted.
The problem is however with edges quality. It is easily conciveable that edges of the rotated image are not antialiased.
I can compare with some programs output and the difference is evident.
I tried to setup Graphics object with high quality of every possible aspect, but with no luck .
graphics.CompositingQuality = CompositingQuality.HighQuality;
graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
graphics.SmoothingMode = SmoothingMode.AntiAlias;
graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
Matrix rotationMatrix = new Matrix();
graphics.Transform = rotationMatrix;
//draw rotated image
good qiality (rotated with some graphics manipultion program) :
poor quality (output from my code):
View Complete Post