Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I uploaded an image to a button via the file dialog. I want to change the resolution of the image through a numeric upDown control. So that when the value changes, the image is 'redrawn' and it has the new resolution. How can I achieve this?...thanks in advance.
Posted
Updated 21-Sep-15 0:32am
v2
Comments
aarif moh shaikh 21-Sep-15 6:27am    
not clarify question
Member 11971544 21-Sep-15 6:32am    
Hello aarif, what isn't clear about the question?
Ralf Meier 22-Sep-15 5:59am    
Additional :
depending on your exact goal : You could also customize your control by overriding the OnPaint-method to be able to change it's behaviour like you want to have it.
But for this it's also necessary to know more about the "why" and perhaps also the "how to" ...
Ralf Meier 21-Sep-15 11:42am    
I have the same opinion ... you should write something more about the "why".
If you want to have a new resolution you have to re-calculate the image. Another possibility could be to use a PictureBox which is resized by you ...
Sinisa Hajnal 22-Sep-15 2:25am    
PictureBox will not change the resolution of the image. But I agree, "why" is more important. What is the purpose of the change?

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