摘要:
new WindowInteropHelper(this).Handle 阅读全文
摘要:
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 阅读全文