杨
杨先彬
Unregistered / Unconfirmed
GUEST, unregistred user!
扫描出来的图形尺寸很大,导致整个图形文件 size 很大。请问如何减少图形文件的尺寸?
我的源程序如下:
Temp_Jpeg:=TJpegImage.Create;
Temp_BitMap:=TBitMap.Create;
Temp_BitMap.LoadFromFile(FileName);
Temp_Jpeg.Grayscale:=true;
Temp_Jpeg.Scale:=jsQuarter;
Temp_Jpeg.PixelFormat:=jf8Bit;
Temp_Jpeg.Performance :=jpBestSpeed;
Temp_Jpeg.ProgressiveDisplay :=true;
Temp_Jpeg.Compress;
Temp_JPeG.CompressionQuality:=30;
Temp_JPeG.JPegNeeded;
Temp_Jpeg.Assign(Temp_BitMap);
Temp_FileName:=ChangeFileExt( FileName, '.jpeg');
Temp_Jpeg.SaveToFile(Temp_FileName);
我的源程序如下:
Temp_Jpeg:=TJpegImage.Create;
Temp_BitMap:=TBitMap.Create;
Temp_BitMap.LoadFromFile(FileName);
Temp_Jpeg.Grayscale:=true;
Temp_Jpeg.Scale:=jsQuarter;
Temp_Jpeg.PixelFormat:=jf8Bit;
Temp_Jpeg.Performance :=jpBestSpeed;
Temp_Jpeg.ProgressiveDisplay :=true;
Temp_Jpeg.Compress;
Temp_JPeG.CompressionQuality:=30;
Temp_JPeG.JPegNeeded;
Temp_Jpeg.Assign(Temp_BitMap);
Temp_FileName:=ChangeFileExt( FileName, '.jpeg');
Temp_Jpeg.SaveToFile(Temp_FileName);