#1 Re: Low level and performance » LZO and SynLZ compression units » 2010-12-10 14:24:25

hi, thank you very much, synzip is very good smile
i used:

ZipFileWrite:=TZipWrite.Create('myzipfile.zip');
ZipFileWrite.AddDeflated('file1.bmp',True,6);
ZipFileWrite.AddDeflated('file2.bmp',True,6);
ZipFileWrite.Free;

to extract the file:

ZipFileRead:=TZipRead.Create('myzipfile.zip');
a:=0;
b:=ZipFileRead.Count;
while a<b do begin
ZipFileRead.UnZip(a,'c:\mydir');
a:=a+1;
end;
ZipFileRead.Free;

is this the correct code to create the file zip? The code works,
the unit is very good, i was trying to use only the default Delphi
components for the game, or also small dll, so if i can release the
source it's easy to compile with delphi 6 or delphi 7.

#2 Re: Low level and performance » LZO and SynLZ compression units » 2010-12-09 17:04:11

hi, the unit is very good smile i was looking for a zip compress unit but the example is very good smile
also i wanted to ask:

lzopas_compressfile('myfile.bmp','myfile.dat',nil,nil,nil);

i used this code to compress the file, it's possible to use a different compression level?
i dont know what to use for the argoment of methodComp so i used 'nil,nil,nil' for the arguments smile
anyway the compression is very good, the bitmap file was 1.37 mb and now it's 190kb

Board footer

Powered by FluxBB