uses JPEG;
procedure TForm1.pr_SaveBitmap(sFileName, sPicFormat: string);
var
BMP: TBitMap;
JPG: TJPEGImage;
begin
BMP := TBitMap.Create;
BMP.LoadFromFile(xxxxx);
JPG := TJPEGImage.Create;
JPG.CompressionQuality := 100;
JPG.Assign(BMP);
JPG.SaveToFile('xxxxx.jpg');
JPG.Free;
BMP.Free;
end;
沒有留言:
張貼留言