如何获得jpg和bmp图象的长和宽 如何获得jpg和bmp图象的长和宽,从文件中读取,不是从图象框读取 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var PicHeight, PicWidth: integerbegin PicHeight := Image.Picture.Height; {取图片高} PicWidth := Image.Picture.Width; {取宽} interface中要uses Graphics, Jpeg;var myBmp: TBitmap; myJpg: TJpegImage;begin myBmp:=TBitmap.Create; myJpg:=TJpegImage.Create; try myBmp.LoadFromFile('D:\My Documents\My Pictures\pig.bmp'); myJpg.LoadFromFile('D:\My Documents\My Pictures\样品.jpg'); Memo1.Text:='The Bitmap Width='+IntToStr(myBmp.Width)+', Height='+IntToStr(myBmp.Height); Memo1.Lines.Append('The JpegImage Width='+IntToStr(myJpg.Width)+', Height='+IntToStr(myJpg.Height)); finally myBmp.Free; myJpg.Free; end; //end of tryend; DELPHI如何知道MSSQL回滚了? 請問CxGrid如何在Cell裏的字串中插入字符呢? 不懂delphi的痛苦!!!DELPHI高手快进!! 急急急!在急等,为什么我在本机上可以运行的delphi程序exe文件,在别的机器上就是不能运行??? 最蠢的问题:高手不要进,如何制作delphi的可执行程序? 制作安装程序除InstallShield外还有谁? 求教一个指针的问题 COM+客户端如何配置? 这个存储过程怎么执行呢??//牛虻 怎么样关闭Tserverscoket连接 使用DCom,如何在服务器端取得客户端的属性,比如客户端的ip等信息 [--申请一个外部ip地址要多少钱--]
PicHeight, PicWidth: integerbegin PicHeight := Image.Picture.Height; {取图片高}
PicWidth := Image.Picture.Width; {取宽}
myBmp: TBitmap;
myJpg: TJpegImage;
begin
myBmp:=TBitmap.Create;
myJpg:=TJpegImage.Create;
try
myBmp.LoadFromFile('D:\My Documents\My Pictures\pig.bmp');
myJpg.LoadFromFile('D:\My Documents\My Pictures\样品.jpg');
Memo1.Text:='The Bitmap Width='+IntToStr(myBmp.Width)+', Height='+IntToStr(myBmp.Height);
Memo1.Lines.Append('The JpegImage Width='+IntToStr(myJpg.Width)+', Height='+IntToStr(myJpg.Height));
finally
myBmp.Free;
myJpg.Free;
end; //end of try
end;