Ejemplo n.º 1
0
        private void BlackAndWhite(Bitmap bmp, int nBlackAndWHiteLimit)
        {
            if (m_picBox.Image != null)
            {
                m_picBox.Image = BmpChanger.BmpToBlackWhite(bmp, nBlackAndWHiteLimit);
            }
            else /**/ } {
    }

    #endregion

    private void komplementToolStripMenuItem_Click(object sender, EventArgs e)
    {
        if (m_picBox.Image != null)
        {
            m_picBox.Image = BmpChanger.BmpToComplement((Bitmap)m_picBox.Image);
        }
    }

    private void tiefpassToolStripMenuItem_Click(object sender, EventArgs e)
    {
        if (m_picBox.Image != null)
        {
            frmPassFilter frm = new frmPassFilter();
            if (frm.ShowDialog() == DialogResult.OK)
            {
                m_picBox.Image = BmpChanger.DoPassFilter((Bitmap)m_picBox.Image, frm.ValueOut, frm.ValueIn, frm.ValueMiddle);
            }
            else /**/ } {
Ejemplo n.º 2
0
 private void hartToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (m_picBox.Image != null)
     {
         m_picBox.Image = BmpChanger.BmpToMainColorExtrem((Bitmap)m_picBox.Image);
     }
 }
Ejemplo n.º 3
0
 private void m_tsmiBlue_Click(object sender, EventArgs e)
 {
     if (m_picBox.Image != null)
     {
         m_picBox.Image = BmpChanger.BmpToColor((Bitmap)m_picBox.Image, 0, 0, 0, 0, 0, 255);
     }
 }
Ejemplo n.º 4
0
        private void m_tsmiGray_Click(object sender, EventArgs e)
        {
            if (m_picBox.Image != null)
            {
                m_bmpGray = BmpChanger.BmpToGrey((Bitmap)m_picBox.Image);

                m_picBox.Image = m_bmpGray;
            }
        }
Ejemplo n.º 5
0
        private void individuellToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (m_picBox.Image != null)
            {
                if (m_frmColRanges == null)
                {
                    m_frmColRanges = new frmColorRanges();
                }
                m_frmColRanges.ShowDialog();

                m_picBox.Image = BmpChanger.BmpToColor((Bitmap)m_picBox.Image, m_frmColRanges.RMin, m_frmColRanges.RMax, m_frmColRanges.GMin, m_frmColRanges.GMax, m_frmColRanges.BMin, m_frmColRanges.BMax);
            }
        }