摘要:
void SetBrightness(int brightness) { brightness = brightness * 255 / 100; WriteableBitmap wb = new WriteableBitmap(this.ImgViewBak.Source as BitmapSource); uint[] PixelData = new uint[wb.PixelWidth * wb.PixelHeight]; wb.CopyPixels(PixelData, 4 * wb.PixelWidth, 0); for (uint y = 0; y < wb.PixelHei 阅读全文