Ejemplo n.º 1
0
 public override ImageData Read(Stream stream, ImageMetaData info)
 {
     var meta = (BsgMetaData)info;
     using (var reader = new BsgReader (stream, meta))
     {
         reader.Unpack();
         return ImageData.CreateFlipped (info, reader.Format, reader.Palette, reader.Data, reader.Stride);
     }
 }
Ejemplo n.º 2
0
        public override ImageData Read(Stream stream, ImageMetaData info)
        {
            var meta = (BsgMetaData)info;

            using (var reader = new BsgReader(stream, meta))
            {
                reader.Unpack();
                return(ImageData.CreateFlipped(info, reader.Format, reader.Palette, reader.Data, reader.Stride));
            }
        }