private void picBoxModifyed_MouseUp(object sender, MouseEventArgs e) { this.IsPictureHolded = false; //Under Construction, problem with stretch image, that less than pictureBox! if (this.picBoxModifyed.SizeMode == PictureBoxSizeMode.Normal) { Point location = e.Location; if (this.checkBoxPipette.Checked) { this.clSelectedColour = ((Bitmap)this.picBoxModifyed.Image).GetPixel(location.X, location.Y); Cip.CipTools.ShowPixelComponents(this.clSelectedColour, this.textBoxH, this.textBoxS, this.textBoxI, this.textBoxR, this.textBoxG, this.textBoxB); Raster rastColour = new Raster(this.cutColourPicBox.Width, this.cutColourPicBox.Height, this.clSelectedColour); rastColour.ShowFilter(this.cutColourPicBox); } if (this.checkBoxMoving.Checked) { } } }
private void cutColourPicBox_MouseLeave(object sender, EventArgs e) { Raster rastColour = new Raster(this.cutColourPicBox.Width, this.cutColourPicBox.Height, this.clSelectedColour); rastColour.ShowFilter(this.cutColourPicBox); }
private void OpenPicture(object sender, EventArgs e, Bitmap newBitmap) { if (newBitmap != null) { switch (tabControl1.SelectedIndex) { case 0://editor tab { normalImageRaster = new Raster(newBitmap); if (this.currentBitmap != null) this.currentBitmap.Dispose(); this.currentBitmap = newBitmap; if (this.picBoxOriginal.Image != null) this.picBoxOriginal.Image.Dispose(); this.picBoxOriginal.Image = this.currentBitmap; this.ShowImageAttributes(this.currentBitmap); this.defaultStateToolStripMenuItem_Click(sender, e); break; } case 1://split tab { rasterComponents = new Raster(newBitmap); if (this.pictureBoxOrig.Image != null) this.pictureBoxOrig.Image.Dispose(); rasterComponents.ShowFilter(this.pictureBoxOrig); Cip.CipTools.GCFullCollect(); break; } } } }
private void cutColourPicBox_Click(object sender, EventArgs e) { this.clSelectedColour = Cip.CipTools.SelectColour(); Raster rastColour = new Raster(this.cutColourPicBox.Width, this.cutColourPicBox.Height, this.clSelectedColour); rastColour.ShowFilter(this.cutColourPicBox); }
private void OpenPicture(object param) { object sender = ((ArrayList)param)[0]; EventArgs e = (EventArgs)((ArrayList)param)[1]; Bitmap newBitmap = (Bitmap)((ArrayList)param)[2]; if (newBitmap != null) { switch (tabControl1.SelectedIndex) { case 1://editor tab { normalImageRaster = new Raster(newBitmap); if (this.currentBitmap != null) this.currentBitmap.Dispose(); this.currentBitmap = newBitmap; if (this.picBoxOriginal.Image != null) this.picBoxOriginal.Image.Dispose(); if (this.picBoxModifyed.Image != null) this.picBoxModifyed.Image.Dispose(); this.picBoxOriginal.Image = this.currentBitmap; this.picBoxModifyed.Image = this.currentBitmap; this.ShowImageAttributes(this.currentBitmap); for (int i = 1; i < UndoList.Length; i++) UndoList[i] = null; iCurrentIndexOfList = 0; UndoList[0] = normalImageRaster; iCurrentCountOfList = 1; this.CalculateHistogram(); this.CheckUndoToolStrip(); Cip.CipTools.GCFullCollect(); break; } case 2://split tab { rasterComponents = new Raster(newBitmap); rasterComponents.ShowFilter(this.pictureBoxOrig); Cip.CipTools.GCFullCollect(); break; } } } }