Adjusting image brightness
问题 For windows phone app, when I am adjusting brightness by slider it works fine when I move it to right. But when I go back to previous position, instead of image darkening, it goes brighter and brighter. Here is my code based on pixel manipulation. private void slider1_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e) { wrBmp = new WriteableBitmap(Image1, null); for (int i = 0; i < wrBmp.Pixels.Count(); i++) { int pixel = wrBmp.Pixels[i]; int B = (int)(pixel & 0xFF); pixel