Click here to Skip to main content
15,938,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to set the image width and height in code behind in inches ?
Posted

Have a look at this:
Image Properties[^]

If you see the Height & Width properties. Both Get & Set are available. Just use them to set it.

Now, in order to have a specific unit, you need to convert to desired one and use it.
 
Share this answer
 
Comments
Dalek Dave 23-Jul-10 9:04am    
Google must be broken.
Here too[^] may help with your needs.
Google is your friend!
 
Share this answer
 
Comments
karthidew 24-Jul-10 2:43am    
Better code on Image Editing.

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