private void ShowGrayscaleBitmap() { BitmapSource captureScreen = CaptureScreen(this.resultBorder, 96, 96); if (captureScreen == null) { return; } Grayscale4Bitmap grayscaleBitmap = new Grayscale4Bitmap(); grayscaleBitmap.Source = captureScreen; this.resultImage.Source = grayscaleBitmap; }
private void ShowGrayscaleBitmap() { var captureScreen = CaptureScreen(resultBorder, 96, 96); if (captureScreen is null) { return; } var grayscaleBitmap = new Grayscale4Bitmap { Source = captureScreen }; resultImage.Source = grayscaleBitmap; }
private void ShowGrayscaleBitmap() { BitmapSource captureScreen = CaptureScreen(this.resultBorder, 96, 96); if (captureScreen == null) return; Grayscale4Bitmap grayscaleBitmap = new Grayscale4Bitmap(); grayscaleBitmap.Source = captureScreen; this.resultImage.Source = grayscaleBitmap; }