Grainy Rotate

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.
 
J

Joseph Byrns

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top