Resize Image C Codeproject. Resizing an image on the fly using net. Create a new bitmap of size picture box height width.
Its pretty straight forward. Public void resize string inputjpg string outputjpg int maxwidth int maxheight image image image fromfile inputjpg true. Putoncanvas function of imager cs puts the image on virtually created canvas for an image.
Create a new bitmap of size picture box height width.
You need to resize the image for the picture box height width. Resizing an image on the fly using net. Resize the image and keep aspect. Public void resize string inputjpg string outputjpg int maxwidth int maxheight image image image fromfile inputjpg true.