blob: e25c193ec0562fb2ad4ba036c6f980ad94cbbb78 (
plain) (
tree)
|
|
unit JPEG;
{$I switches.inc}
interface
uses Graphics;
type
TJPEGImage = class(TBitmap)
private
FCompressionQuality : Integer;
public
Procedure SaveToFile(const f : String); override;
property CompressionQuality : Integer read FCompressionQuality write FCompressionQuality;
end;
implementation
uses FreeImage;
{ TJPEGImage }
procedure TJPEGImage.SaveToFile(const f: String);
begin
if CompressionQuality = 0 then begin
CompressionQuality := 95;
end;
FImage.Save( f, CompressionQuality);
end;
end.
|