Esempio n. 1
0
        public static Image DoNegaPosi(Image img)
        {
            var bmp = new Bitmap(img);

            // Edit
            Color[,] pixel = EditClass.DoEdit.NegaPosi(DealBmp.DataFromBmp(bmp));

            // data->image
            bmp = DealBmp.BmpFromData(pixel);
            Image reimg = DealBmp.ImageFromBmp(bmp);

            return(reimg);
        }
Esempio n. 2
0
        public static Image DoToneCurve_S_Shaped(Image img)
        {
            var bmp = new Bitmap(img);

            // Edit
            Color[,] pixel = EditClass.DoEdit.ToneCurve(
                DealBmp.DataFromBmp(bmp),
                EditClass.ToneCurve.S_Shaped);

            // data->image
            bmp = DealBmp.BmpFromData(pixel);
            Image reimg = DealBmp.ImageFromBmp(bmp);

            return(reimg);
        }
Esempio n. 3
0
        public static Image DoLinearFilter(Image img)
        {
            var bmp = new Bitmap(img);

            // Edit
            Color[,] pixel = EditClass.DoEdit.LinearFilter(
                DealBmp.DataFromBmp(bmp),
                EditClass.Kernel.OneNine);

            // data->image
            bmp = DealBmp.BmpFromData(pixel);
            Image reimg = DealBmp.ImageFromBmp(bmp);

            return(reimg);
        }