private void ReadOldPalleteAChunk(AsepriteReader reader) { AsepritePaletteChunk palette = new AsepritePaletteChunk(reader, false); File.Palette = palette; reader.LastChunkRead = palette; }
/// <summary> /// Reads a <see cref="AsepritePaletteChunk"/> from the underlying stream /// of the provided <see cref="AsepriteReader"/> instance. /// </summary> /// <param name="reader"> /// The <see cref="AsepriteReader"/> instance being used to read the /// Aseprite file. /// </param> private void ReadPaletteChunk(AsepriteReader reader) { AsepritePaletteChunk palette = new AsepritePaletteChunk(reader, true); File.Palette = palette; reader.LastChunkRead = palette; }