Encapsulates the error information.
Exemplo n.º 1
0
        ///<summary>
        /// Quantize images (reduce number of colors).
        ///</summary>
        ///<param name="settings">Quantize settings.</param>
        ///<exception cref="MagickException"/>
        public MagickErrorInfo Quantize(QuantizeSettings settings)
        {
            if (Count == 0)
            {
                return(null);
            }

            Throw.IfNull("settings", settings);

            using (MagickImage colorMap = AppendHorizontally())
            {
                MagickErrorInfo result = colorMap.Quantize(settings);

                foreach (MagickImage image in _Images)
                {
                    image.Map(colorMap);
                }

                return(result);
            }
        }