// If the user hits the new menu, clear the document
        private void NewMenu_Click(object sender, System.EventArgs e)
        {
            // Erase the ink
            ic.Ink.DeleteStrokes();
            Signature.Invalidate();

            // Clear the text boxes
            FirstNameBox.Text = "";
            LastNameBox.Text  = "";
        }
Example #2
0
        private void MarginalButton_Click_1(object sender, System.EventArgs e)
        {
            int ccount;
            int yl, yr, xu, xd;

            if (Filters.MarginalFilter(m_Bitmap, out gray, out ccount, 67, out xu, out xd, out yl, out yr, out maxX, out maxY))
            {
                m_Bitmap1 = (Bitmap)Bitmap.FromFile(name, false);
                Rectangle sourceRectangle = new Rectangle(yl, xu, yr - yl, xd - xu);
                c_Bitmap = m_Bitmap1.Clone(sourceRectangle,
                                           PixelFormat.DontCare);
                groupBox1.Text = "车牌";
                groupBox1.Invalidate();

                this.SaveButton.Enabled     = true;
                this.TwoValueButton.Enabled = true;
                panel4.Invalidate();
                graydo();
            }
        }