Exemplo n.º 1
0
        private string GetFormat()
        {
            switch (Format)
            {
            case MagickFormat.Unknown:
                return(null);

            case MagickFormat.ThreeFr:
                return("3FR");

            case MagickFormat.ThreeG2:
                return("3G2");

            case MagickFormat.ThreeGp:
                return("3GP");

            default:
                return(EnumHelper.GetName(Format).ToUpperInvariant());
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Unregisters this format.
 /// </summary>
 /// <returns>True when the format was found and unregistered.</returns>
 public bool Unregister()
 => NativeMagickFormatInfo.Unregister(EnumHelper.GetName(Format));