Esempio n. 1
0
        private void EnhanceImage(MagickImage image)
        {
            if (Enhance == WhiteboardEnhancements.None)
            {
                return;
            }

            if (Enhance.HasFlag(WhiteboardEnhancements.Stretch))
            {
                image.ContrastStretch((Percentage)0, (Percentage)0);
            }

            if (Enhance.HasFlag(WhiteboardEnhancements.Whitebalance))
            {
                ApplyWhiteBalance(image);
            }
        }