设置图像宽度和高度 ? [英] Setting the Image Width & Height ?
本文介绍了设置图像宽度和高度 ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在代码中设置图像的宽度和高度(以英寸为单位)?
How to set the image width and height in code behind in inches ?
推荐答案
看看:
图像属性 [
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.
^ ]可能会满足您的需求.
Google是您的朋友!
Here too[^] may help with your needs.
Google is your friend!
这篇关于设置图像宽度和高度 ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文