public bool TryParseSprite(Stream s, out ISpriteFrame[] frames) { if (!IsShpTD(s)) { frames = null; return(false); } frames = new ShpTDSprite(s).Frames.ToArray(); return(true); }
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(); }