var
bitbmp: TBitMap;
begin
Bitbmp := tBitmap.Create;
try
if OpenDialog1.Execute then
begin
DBImage1.Picture.Bitmap.LoadFromFile(OpenDialog1.FileName);
end
else finally
Bitbmp.Free;
end;
end;打开jpg图片时提示 bitmap image is not valid
bitbmp: TBitMap;
begin
Bitbmp := tBitmap.Create;
try
if OpenDialog1.Execute then
begin
DBImage1.Picture.Bitmap.LoadFromFile(OpenDialog1.FileName);
end
else finally
Bitbmp.Free;
end;
end;打开jpg图片时提示 bitmap image is not valid
解决方案 »
- 为什么用createoleobject命令总显示出错?
- 关于动态创建PopupMenu的问题
- 如何让mainmenu控件的一个子菜单成为当前焦点
- Delphi7 license的问题----特急求救、特急求救
- delphi中如何运用系统中的mediaplayer进行avi格式音频文件的播放
- 用VB写的OCX创建时在控件面板上无显示,生成的TLB文件只有Interface,无class?
- adotable查询数据滞后
- Pascal 问题
- 我是delphi初学者,帮我看看这段程序对不对?提意见者就有分!!!
- 致kxy:关于TCP Socket的问题?
- ADOQuery1中怎样动态添加字段呢?
- 一个adotable插入问题,把我整疯了!
jpg:TJpegImage;
if OpenDialog1.Execute then
begin
DBImage1.Picture{.Bitmap}.LoadFromFile(OpenDialog1.FileName);
endend;