コード例 #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            if (bmp == null)
            {
                return;
            }
            BitMapProcessor b = new BitMapProcessor();
            var             a = b.GetPixels(bmp);

            a   = b.GammaCorrection(a, (float)trackBar1.Value / 10);
            bmp = b.GetBitmap(a);
            pictureBox1.Image = bmp;
        }
コード例 #2
0
        private void button7_Click(object sender, EventArgs e)
        {
            if (bmp == null)
            {
                return;
            }
            BitMapProcessor b = new BitMapProcessor();
            var             a = b.GetPixels(bmp);

            a   = b.Spreading(a);
            bmp = b.GetBitmap(a);
            pictureBox1.Image = bmp;
        }
コード例 #3
0
        private void button14_Click(object sender, EventArgs e)
        {
            if (bmp == null)
            {
                return;
            }
            BitMapProcessor b = new BitMapProcessor();
            var             a = b.GetPixels(bmp);

            a   = b.Noise(a, trackBar3.Value);
            bmp = b.GetBitmap(a);
            pictureBox1.Image = bmp;
        }