예제 #1
0
        public bool TryParseSprite(Stream s, out ISpriteFrame[] frames)
        {
            if (!IsShpTD(s))
            {
                frames = null;
                return(false);
            }
            frames = new ShpTDSprite(s).Frames.ToArray();

            return(true);
        }
예제 #2
0
            public ImageHeader(Stream s, ShpTDSprite reader)
            {
                this.reader = reader;

                var data = s.ReadUInt32();

                FileOffset = data & 0xffffff;
                Format     = (Format)(data >> 24);

                RefOffset = s.ReadUInt16();
                RefFormat = (Format)s.ReadUInt16();
            }