Resize Image C High Quality. Int sourceheight imgtoresize height. Else npercent npercentw.
Using var graphics graphics fromimage destimage graphics compositingmode compositingmode sourcecopy. Float npercenth 0. Float npercent 0.
I want to resize an image with good quality and the most important thing is having less weight for an image so that webpages will load it faster.
If newheight maxheight resize with height instead. Using var graphics graphics fromimage destimage graphics compositingmode compositingmode sourcecopy. I am using this method to resize my images. Else npercent npercentw.