Home » Posts tagged "scaling"

.NET Image Scaling in CSharp

94Tr One feature of .NET that I use regularly is image scaling.  I typically use this on web sites that need image upload capabilities.  I assume the user is going to send me an image that is significantly bigger than what I could use and then scale it down before storing it.

I also use this feature so that I only have to store one image.  If I need it at a different size, I can scale it prior to sending it down to the browser.  In this case, I implement .NET page caching so that I don’t have to run the scaling code every time the image is requested.

Image scaling really isn’t that hard.  Here’s how it’s done.

Continue reading “.NET Image Scaling in CSharp”