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.
 

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

Draw rotated image 2
Rotate Image 1
Word How to rotate individual letters in word 2016 0
Bitmap rotation CF2.0 2
Rotating Images 5
What happened to rotate in 2007? 16
Waiting for variable to change 6
GDI and Rotating Text 1

Back
Top