// 亮度调整 private void BrightnessBar_Scroll(object sender, EventArgs e) { image = ImageProcessor.BrightnessAdjust(o_image, BrightnessBar.Value); PictureDisplayer.Image = getImage(); }
// 高斯模糊 private void GaussianBlur_Scroll(object sender, EventArgs e) { image = ImageProcessor.GaussianBlur(o_image, GaussianBlur.Value); PictureDisplayer.Image = getImage(); }
// 灰度化 private void GrayScaleButton_Click(object sender, EventArgs e) { image = ImageProcessor.Greyscale(getImage()); PictureDisplayer.Image = getImage(); }
private void trackBarB_Scroll(object sender, EventArgs e) { image = ImageProcessor.SetB(getImage(), o_image, trackBarB.Value); PictureDisplayer.Image = getImage(); }
// 水平翻转 private void HorizonalFlipButton_Click(object sender, EventArgs e) { setImage(ImageProcessor.HorizenalFlit(getImage())); PictureDisplayer.Image = getImage(); }
// 逆时针旋转 private void AntiClockwiseButton_Click(object sender, EventArgs e) { setImage(ImageProcessor.AntiClockwise(getImage())); PictureDisplayer.Image = getImage(); }