// ==================================================================== // Description: Convolution - Prewitt Y // Return void void Convolution_PrewittY ( object sender, EventArgs ev ) // ==================================================================== { try { if ( m_list.Count > 0 ) { ImageView fm = (ImageView)this.ActiveMdiChild; if ( fm.m_Img.PixelFormat != PixelFormat.Format24bppRgb ) { MessageBoxButtons buttons = MessageBoxButtons.OK; MessageBox.Show(this, "Image Depth != 24bpp", null, buttons, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, MessageBoxOptions.RightAlign); return; } Convolution dlg = new Convolution(); dlg.MdiParent = this; dlg.OnInitForm( fm, (int)Kernel.Prewitt_Y ); dlg.Show(); dlg.Location = new Point (this.Width-dlg.Width-PAD, 0 ); } } catch(Exception e) { DisplayError("Convolution_PrewittY() failed " + e.ToString() ); } }