Grainy Rotate

  • Thread starter Thread starter Joseph Byrns
  • Start date Start date
J

Joseph Byrns

I am using LockBits and CF2.0 to do a basic rotate of a bitmap, the image is
rotated but looks very grainy. Can someone tell me of any resources on how
to rotate an image with better quality. There is one on CodeProject but
it's in C++ and I struggle with C++, so something in .NET or an article
would be useful.

Thanks.
 
Problem solved, rather than go through each pixel in the original bitmap and
find it's rotated coordinate (which leaves gaps), I go through each pixel in
the rotated bitmap and identify what the pixel should be (by finding the
nearest pixel in the original bitmap). This way I ensure no pixels in the
new bitmap are left unchecked. Results are much better.
 
Back
Top