Ejemplo n.º 1
0
 public static Comics FromPath(string path)
 {
     Comics comics = new Comics(path);
     using(var zip = new ZipFile(path))
     {
         comics.Bitmaps = GetBitmapEntries(zip)
             .OrderBy(entry => entry.Name)
             .Select(entry =>
                 {
                     using (var stream = zip.GetInputStream(entry))
                     {
                         return stream.ReadFully();
                     }
                 })
             .ToArray();
     }
     return comics;
 }