Пример #1
0
        public override ImageData Read(IBinaryStream file, ImageMetaData info)
        {
            var reader = new TanReader(file, (TanMetaData)info);
            var pixels = reader.UnpackFrame(0);

            return(ImageData.Create(info, reader.Format, reader.Palette, pixels));
        }
Пример #2
0
 public TanFrameDecoder(IBinaryStream input, TanMetaData info, int frame)
     : base(input, info)
 {
     m_frame  = frame;
     m_reader = new TanReader(m_input, info);
 }