public static void InvertColorPlane(Bitmap img, InveseVariant variant) { string ImgExtension = GetImageInfo.Imginfo(Imageinfo.Extension); string imgName = GetImageInfo.Imginfo(Imageinfo.FileName); string defPath = GetImageInfo.MyPath("Rand"); Bitmap image = new Bitmap(img.Width, img.Height, PixelFormat.Format24bppRgb); image = InvertColorPlaneHelper(img, variant); string outName = defPath + imgName + "_" + variant.ToString() + ImgExtension; Helpers.SaveOptions(image, outName, ImgExtension); }