private void btLuminancia_Click(object sender, EventArgs e) { if (btLuminancia.Text == "Luminância") { Bitmap imgDest = new Bitmap(image); imageBitmap = (Bitmap)image; Filtros.luminancia(imageBitmap, imgDest); pbOriginal.Image = imgDest; btLuminancia.Text = "Reset"; } else { pbOriginal.Image = image; btLuminancia.Text = "Luminância"; } }
private void btmaibri_Click_1(object sender, EventArgs e) { Filtros.brilho(bitmaprgb, 10, lrgb); pbmodified.Image = bitmaprgb; }
private void btmaihue_Click_1(object sender, EventArgs e) { Filtros.hue(bitmaprgb, 1, lrgb); pbmodified.Image = bitmaprgb; }