private void button_AM_Click(object sender, System.EventArgs e) { Dither dt = new Dither("log.txt"); dt.SetImage(m_prv.m_Img); dt.ToGray(); dt.SetScreen((int)DScreen.Square); dt.Halftone(); m_prv.m_Img = dt.GetImage(); m_prv.Repaint(); }
private void button_Stochastic_Click(object sender, System.EventArgs e) { Dither dt = new Dither("log.txt"); dt.SetImage(m_prv.m_Img); dt.ToGray(); dt.SetScreen((int)DScreen.Random); dt.Stochastic(); m_prv.m_Img = dt.GetImage(); m_prv.Repaint(); }
private void button_FM_Click(object sender, System.EventArgs e) { Dither dt = new Dither("log.txt"); dt.SetImage(m_prv.m_Img); dt.ToGray(); dt.ErrDiff(); m_prv.m_Img = dt.GetImage(); m_prv.Repaint(); }