Click here to Skip to main content
14,427,455 members
Rate this:
Please Sign up or sign in to vote.
See more:
How to set the image width and height in code behind in inches ?
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   
Comments
Dalek Dave 23-Jul-10 9:04am
   
Google must be broken.
Rate this:
Please Sign up or sign in to vote.

Solution 2

Here too[^] may help with your needs.
Google is your friend!
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100