大神们,帮忙看看是怎么回事
阿 元 2018-06-12 08:03:43 procedure TForm1.Button2Click(Sender: TObject);
var
Jpeg:TJPEGImage; //TJPEGImage
Bitmap:TBitmap; //TBitmap对象
ExtendName:string; //用于保存文件的扩展名'.bmp'或'.jpg'
begin
ExtendName:=ExtractFileExt(opendialog1.FileName);
//得到当前正在显示的图像文件的扩展名
if ExtendName=' .bmp' then
begin
Jpeg:=TJPEGImage.;
end;
在创建TJPEGImage文件时出现错误,[Pascal Error] Unit1.pas(1): Unable to invoke Code Completion due to errors in source code
Jpeg:=TJPEGImage.Create;写不下去