要在image中显示一幅图片,按照图片的比例显示,请问应该怎么办,或者一个函数求图片的长和宽。
解决方案 »
- delphi就是被那些正版代理商搞烂的
- 急急:如何用excel控件,把指定区域的数据、格式复制到新指定的区域??
- Translation Repository ---------- 翻译的烦恼
- 怎么知道哪个dbedit字段修改了?
- 高手帮忙,急,关于excel导入sql程序
- 怎么隐藏窗口?
- list index out of bound(1)是什么错误,大家帮我看看好嘛,谢谢!
- 有几个自称delphi高手的,看到这个简单问题后,就上吊了
- delphi对sqlserver进行查询报 class eoleexception with message '数据库'tempdb'的日志已经满,请悲愤该数据库的日志以释放一些日志空间
- 昨天刚看到的问题今天就找不到了。再问一次,就是如何改变打印机的纸张方向?是横竖方向
- 请问一下开发一个类似Acdsee图像浏览软件用哪种好??
- Delphi中的有关类型的语句,在VC中如何表示?谢谢
begin
Caption := inttostr(image1.Picture.Width) + ' ' + inttostr(image1.Picture.Height);
image1.Width := 2 * image1.Picture.Width;
image1.Height := 2 * image1.Picture.Height;
image1.Stretch := true;
end;
1,portional
Indicates whether the image should be changed, without distortion, so that it fits the bounds of the image control
2,Stretch
Indicates whether the image should be changed so that it exactly fits the bounds of the image control.