Ejemplo n.º 1
0
        private void button_Converting_Click(object sender, EventArgs e)
        {
            width  = pictureBox_Wavelet.Width;
            height = pictureBox_Wavelet.Height;
            ImageWave image = CalcCustom.WaweinPicture(width, height);


            Bitmap bmp = new Bitmap(width, height);
            int    r, g, b;

            foreach (Pixels pixel in image.getPixels())
            {
                r = g = b = pixel.getColor();
                bmp.SetPixel((int)pixel.getCoordinate().getX(), (int)pixel.getCoordinate().getY(), Color.FromArgb(r, g, b));
                pictureBox_Wavelet.Image = bmp;
            }
        }
Ejemplo n.º 2
0
        private void button_WAVE_Wavelet_Click(object sender, EventArgs e)
        {
            Function funcWavelet = CalcCustom.getWaveletFunc();

            Draw(funcWavelet);
        }
Ejemplo n.º 3
0
        private void button_Sombrero_Click(object sender, EventArgs e)
        {
            Function funcSombrero = CalcCustom.getSombreroFunc();

            Draw(funcSombrero);
        }
Ejemplo n.º 4
0
        private void button_function_Click(object sender, EventArgs e)
        {
            Function funcSin = CalcCustom.getSinFunc();

            Draw(funcSin);
        }