Exemplo n.º 1
0
        public int CompareTo(WicPixelFormat other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            if (BitsPerPixel != other.BitsPerPixel)
            {
                return(BitsPerPixel.CompareTo(other.BitsPerPixel));
            }

            return(ChannelCount.CompareTo(other.ChannelCount));
        }