internal void Read(GifReader reader) { Byte size = reader.ReadByte(); if (size != 11) { System.Diagnostics.Debug.WriteLine("Wrong size of " + ToString()); } applicationIdentifier = reader.ReadString(8); applicationAuthenticationCode = reader.ReadString(3); bytes = reader.ReadBinarySubBlocks(); }
internal void Read(GifReader reader) { String signature = reader.ReadString(3); if (signature != "GIF") { throw new Exception("No GIF signature"); } version = reader.ReadString(3); if ((version != "87a") && (version != "89a")) { throw new Exception("Unsupported GIF version: " + version); } }