Exemple #1
0
 public override ImageData Read(IBinaryStream stream, ImageMetaData info)
 {
     using (var reader = new RmskReader(stream.AsStream, info))
     {
         reader.Unpack();
         return(ImageData.CreateFlipped(info, PixelFormats.Gray8, null, reader.Data, (int)info.Width));
     }
 }
Exemple #2
0
 public override ImageData Read(Stream stream, ImageMetaData info)
 {
     using (var reader = new RmskReader (stream, info))
     {
         reader.Unpack();
         return ImageData.CreateFlipped (info, PixelFormats.Gray8, null, reader.Data, (int)info.Width);
     }
 }