Esempio n. 1
0
 SampleDataset(string name, SampleDownload.Format format)
 {
     Name   = name;
     Format = format;
     Dpi    = LookupDpi(name);
     Layout = new SampleLayout(SampleDownload.Unpack(name, format));
 }
 public byte[] Load()
 {
     return(File.ReadAllBytes(Path.Combine(SampleDownload.Location(Dataset.Name), Dataset.Layout.Filename(Id))));
 }
Esempio n. 3
0
 public static SampleLayout Scan(string dataset)
 {
     return(new SampleLayout(SampleDownload.Unpack(dataset)));
 }