Exemplo n.º 1
0
        public static FDImage GetGray(string data)
        {
            Image image     = (mainForm != null) ? mainForm.FindImage(data) : new Bitmap(16, 16);
            Image converted = ImageKonverter.ImageToGrayscale(image);

            imageList.Images.Add(converted);
            return(new FDImage(converted, imageList.Images.Count - 1));
        }
Exemplo n.º 2
0
        public static FDImage GetGray(string data)
        {
            Image image = (mainForm != null) ? mainForm.FindImage(data, false) : new Bitmap(16, 16);

            image = mainForm.GetAutoAdjustedImage(ImageKonverter.ImageToGrayscale(image));
            imageList.Images.Add(image);
            return(new FDImage(image, imageList.Images.Count - 1));
        }