Exemple #1
0
 private Bitmap Decompress(String filepath)
 {
     Console.WriteLine("Reading file before decompression...");
     CompResult cr = POTools.DeserializeCompResult(filepath);
     Console.WriteLine("Preparing to decompression...");
     List<double> cfactors = new List<double>(cr.Cqueue);
     List<MappedPoint> interpPoints = new List<MappedPoint>(cr.Iqueue);
     List<int> addresses = cr.Aqueue;
     Decompressor decompressor = new Decompressor(cfactors,
         interpPoints, addresses,
         cr.SmallDelta, cr.BigDelta, cr.A, cr.ImageWidth,
         cr.ImageHeight, cr.DMax);
     Console.WriteLine("Decompressing image...");
     //return decompressor.DecompressImage(out bitmapWithGrid);
     return decompressor.DecompressImageVerII(out bitmapWithGrid);
 }