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; } }
private void button_WAVE_Wavelet_Click(object sender, EventArgs e) { Function funcWavelet = CalcCustom.getWaveletFunc(); Draw(funcWavelet); }
private void button_Sombrero_Click(object sender, EventArgs e) { Function funcSombrero = CalcCustom.getSombreroFunc(); Draw(funcSombrero); }
private void button_function_Click(object sender, EventArgs e) { Function funcSin = CalcCustom.getSinFunc(); Draw(funcSin); }