/// <summary>Adds the given image format to the global set for use. /// Note that you do not need to call this manually; Just deriving from /// ImageFormat is all that is required.</summary> /// <param name="format">The new format to add.</param> public static void Add(ImageFormat format){ string[] nameSet=format.GetNames(); if(nameSet==null){ return; } foreach(string name in nameSet){ Formats[name.ToLower()]=format; } }