Tôi có Hình ảnh WPF, cách xóa mờ?
Tôi cần
XAML:
<Image Height="500"
MouseLeftButtonDown="image_MouseLeftButtonDown"
MouseRightButtonDown="image_MouseRightButtonDown"
Name="image"
Stretch="Fill"
Width="500" />`
C#:
wbmap = new WriteableBitmap(50, 50, 500, 500, PixelFormats.Indexed8, palette);
wbmap.WritePixels(new Int32Rect(0, 0, wbmap.PixelWidth, wbmap.PixelHeight), pixels, wbmap.PixelWidth * wbmap.Format.BitsPerPixel/8, 0);
image.Source = wbmap;
Xin vui lòng cho biết thêm chi tiết !. Làm thế nào bạn nhận được rằng Blur trong hình ảnh đầu tiên? Đã được tạo ra trong XAML? –
Tôi đã thay đổi câu hỏi. –