Link to home
Start Free TrialLog in
Avatar of JPERKS1985
JPERKS1985

asked on

rotate image without causing ANY distortion

I need to rotate an image in vb.net without causing any distortion. This is important because I need the exact pixel coordinates to match an hashmap I have. Any change will not do. When I use a standard algorythm the image blurs.
Avatar of cavehop
cavehop
Flag of United States of America image

You should be able to let the .NET framework do all the "heavy lifting". Check out the help on System.Drawing.Image. This class has a method named RotateFlip that should do everything you need. One potential gotcha is that the image format may have some influence on how the actual rotation is processed, but if you are working with a standard bitmap, I think it will do what you want.

--Lance--
ASKER CERTIFIED SOLUTION
Avatar of broadbent
broadbent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My comment is more to the point than many comments I have received regarding my own questions.
I agree with broadbent. Lacking any further clarification from the original poster as to why it might not have been sufficient, broadbent's answer seems about as to the point (sorrry, couldn't resist) as could be asked for.
Although ... in re-reading, I see you beat me to the pun (ah well, I guess I'm not as original as I thought).