Пример #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);
     }
 }
Пример #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));
            }
        }