T
thr26
Unregistered / Unconfirmed
GUEST, unregistred user!
我执行一个
opendialog.execute 后。
在另一按钮使用:
JPJPBT := TJPEGImage.Create;
JPJPBT.LoadFromFile('LABEL.JPG');
bitmpbt:=TBitMap.Create;
出错,
cannot open 'LABEL.JPG'?
不执执行opendialog.execute,又没有问题。
另我想问:(从一文件调用(可行,当有时出现上面的问题))
JPJPBT := TJPEGImage.Create;
JPJPBT.LoadFromFile('./LABEL.JPG');
bitmpbt:=TBitMap.Create;
bitmpbt.Width:=200;
bitmpbt.Height:=100;
bitmpbt.Assign(JPJPBT);
改成从现成图片调用(这样调用的东西怎么为空没有内容)
bitmpbt:=TBitMap.Create;
bitmpbt.Width:=imgbq.Picture.Bitmap.Width;
bitmpbt.Height:=imgbq.Picture.Height;
bitmpbt.Assign(imgbq.Picture.Bitmap);
opendialog.execute 后。
在另一按钮使用:
JPJPBT := TJPEGImage.Create;
JPJPBT.LoadFromFile('LABEL.JPG');
bitmpbt:=TBitMap.Create;
出错,
cannot open 'LABEL.JPG'?
不执执行opendialog.execute,又没有问题。
另我想问:(从一文件调用(可行,当有时出现上面的问题))
JPJPBT := TJPEGImage.Create;
JPJPBT.LoadFromFile('./LABEL.JPG');
bitmpbt:=TBitMap.Create;
bitmpbt.Width:=200;
bitmpbt.Height:=100;
bitmpbt.Assign(JPJPBT);
改成从现成图片调用(这样调用的东西怎么为空没有内容)
bitmpbt:=TBitMap.Create;
bitmpbt.Width:=imgbq.Picture.Bitmap.Width;
bitmpbt.Height:=imgbq.Picture.Height;
bitmpbt.Assign(imgbq.Picture.Bitmap);