摘要: new WindowInteropHelper(this).Handle 阅读全文
posted @ 2013-07-05 17:46 wxing67 阅读(202) 评论(0) 推荐(0) 编辑
摘要: BitmapSource bitmap = null;int degreeBrightness = 0;int degreeContrast = 0;private void SetBrightness(int degree){degree = degree * 255 / 100;WriteableBitmap wb = new WriteableBitmap(bitmap);uint[] PixelData = new uint[wb.PixelWidth * wb.PixelHeight];wb.CopyPixels(PixelData, 4 * wb.PixelWidth, 0);fo 阅读全文
posted @ 2013-07-05 15:58 wxing67 阅读(2293) 评论(0) 推荐(0) 编辑