Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
20 Points
5 Posts
Mar 28, 2006 12:49 PM|LINK
line 125 of ImageHandling.cs
changed from :
scale = iOriginal.Width / maxwidth;
to
scale = (double)iOriginal.Width / (double)maxwidth;
This otherwise would use integer division and produce a slightly incorrect scale. Some of my images were coming out a bit skewed and looked funny, so debugged this.
GavinPollock
Member
20 Points
5 Posts
Image scaling algorithm incorrect
Mar 28, 2006 12:49 PM|LINK
line 125 of ImageHandling.cs
changed from :
scale = iOriginal.Width / maxwidth;
to
scale = (double)iOriginal.Width / (double)maxwidth;
This otherwise would use integer division and produce a slightly incorrect scale. Some of my images were coming out a bit skewed and looked funny, so debugged this.