internal static GifApplicationExtension ReadApplication(Stream stream) { GifApplicationExtension applicationExtension = new GifApplicationExtension(); applicationExtension.Read(stream); return(applicationExtension); }
public static ushort GetRepeatCount(GifApplicationExtension ext) { return(ext.Data.Length >= 3 ? BitConverter.ToUInt16(ext.Data, 1) : (ushort)1); }
public static bool IsNetscapeExtension(GifApplicationExtension ext) { return(ext.ApplicationIdentifier == "NETSCAPE" && Encoding.ASCII.GetString(ext.AuthenticationCode) == "2.0"); }