var
  encoderClsid: TGUID;
  stat: TStatus;
  image: TGPImage;
begin
  image := TGPImage.Create('a.bmp');
  GetEncoderClsid('image/jpeg', encoderClsid);
  stat := image.save('a.jpg', encoderClsid, nil);
  if ( stat= OK ) then
    memo1.lines.add('Save Successfully!')
  else 
    memo1.lines.add( format( 'Failure: stat = %s',[GetStatus(stat)]));
  image.free;
end;

 

相关文章:

  • 2021-12-04
  • 2021-12-01
  • 2021-10-18
  • 2021-06-28
  • 2021-11-23
  • 2021-05-31
  • 2021-10-18
猜你喜欢
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案