what's best proceed "square" an settlement .net?
i need beget garland jpegs (200,000+) nonetheless i wish certain thumbs have equal tallness width. however, i don't wish change proportions settlement i need supplement lifeless space shorter dimension "square up". lifeless space's credentials tone variable.
here's formula dash i'm controlling beget thumbs. what's best proceed squaring?
low imgdest system.drawing.bitmap = new bitmap(scalewidth, scaleheight)
imgdest.setresolution(target_resolution, target_resolution)
low grdest graphics = graphics.fromimage(imgdest)
grdest.drawimage(sourceimage, 0, 0, imgdest.width, imgdest.height)
Comments
Post a Comment