private void rGBGrayScaleToolStripMenuItem_Click(object sender, EventArgs e) { if (image != null) { Bitmap bmpR = new Bitmap(image); Bitmap bmpG = new Bitmap(image); Bitmap bmpB = new Bitmap(image); DMA.miniaturaRGBGrayScale((Bitmap)image, bmpR, bmpG, bmpB); FRMImage frm = new FRMImage(); frm.setImage("RGB Gray Scale", bmpR, bmpG, bmpB); frm.Show(); } else { MessageBox.Show("Abra uma Imagem"); } }
private void hSIToolStripMenuItem_Click(object sender, EventArgs e) { if (image != null) { Bitmap bmpH = new Bitmap(image); Bitmap bmpS = new Bitmap(image); Bitmap bmpI = new Bitmap(image); DMA.miniaturaHSI((Bitmap)image, bmpH, bmpS, bmpI); FRMImage frm = new FRMImage(); frm.setImage("HSI", bmpH, bmpS, bmpI); frm.Show(); } else { MessageBox.Show("Abra uma Imagem"); } }