Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to change size and resolution of a image in windows form???
Posted

1 solution

Re-draw it: http://msdn.microsoft.com/en-us/library/4f9s3at1(v=vs.110).aspx[^]
There are several overloads that allow you to re-scale the image, and for resolution you just need to set that when you create the target bitmap to draw on, or using the Bitmap.SetResolution[^] method.
Then just get the Graphics context using Graphics.FromImage[^] and use that instead of the Graphics object in the example with the first link and you're set!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900