private void ImageProcessing_Load(object sender, EventArgs e) { imageHandler.CurrentBitmap = currentEditingPicture.PictureBitmap; imageHandler.BitmapPath = currentEditingPicture.Path; this.AutoScroll = true; this.AutoScrollMinSize = new Size(Convert.ToInt32(imageHandler.CurrentBitmap.Width * zoomFactor), Convert.ToInt32(imageHandler.CurrentBitmap.Height * zoomFactor)); this.Invalidate(); menuItemImageInfo.Enabled = true; ImageInfo imgInfo = new ImageInfo(imageHandler); imgInfo.Show(); }
private void menuItemOpen_Click(object sender, EventArgs e) { if (DialogResult.OK == oDlg.ShowDialog()) { imageHandler.CurrentBitmap = (Bitmap)Bitmap.FromFile(oDlg.FileName); imageHandler.BitmapPath = oDlg.FileName; this.AutoScroll = true; this.AutoScrollMinSize = new Size(Convert.ToInt32(imageHandler.CurrentBitmap.Width * zoomFactor), Convert.ToInt32(imageHandler.CurrentBitmap.Height * zoomFactor)); this.Invalidate(); menuItemImageInfo.Enabled = true; ImageInfo imgInfo = new ImageInfo(imageHandler); imgInfo.Show(); } }
private void menuItemImageInfo_Click(object sender, EventArgs e) { ImageInfo imgInfo = new ImageInfo(imageHandler); imgInfo.Show(); }
private void menuItemImageInfo_Click(object sender, EventArgs e) { ImageInfo imgInfo = new ImageInfo(imageHandler); imgInfo.Show(); }