public ProcessWindow(ColorMatrixBL cm) : this() { colorMatrix = cm; colorMatrix.ImageUpdated += colorMatrix_ImageUpdated; txtPreview.Text = colorMatrix.Expression; isFullScreen = false; matrix = new Matrix(); this.SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer, true); }
public Form1() { InitializeComponent(); openFileDialog1.Filter = "Images|*.bmp;*.jpg;*.jpeg;*.png;*.tif;*.tiff;"; openFileDialog1.FilterIndex = 1; saveFileDialog1.DefaultExt = ".tiff"; saveFileDialog1.Filter = "Tiff|*.tiff"; saveFileDialog1.FilterIndex = 1; saveFileDialog1.AddExtension = true; saveFileDialog1.OverwritePrompt = true; saveFileDialog1.FilterIndex = 1; //radio buttons defaults fillHeightMeasure = FillHeightMeasurment.Precents; fillColorType = FillColorType.Gradient; backgroundColorType = BackgroundColorType.Fix; logic = LogicCondition.XOR; //DEBUG sourceFileName = @"D:\Dropbox\Code\Developing\ColorMatrix\ColorMatrix-V.3\Client\colors.xlsx"; colorMatrix = new ColorMatrixBL(); colorMatrix.ImageCreated += colorMatrix_ImageCreated; UpdatePointsAndHeight(); }