Files
docs-desktop/dotnet-desktop-guide/framework/wpf/controls/how-to-convert-an-image-to-greyscale.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.4 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Convert an Image to Greyscale 03/30/2017
csharp
vb
images [WPF], converting to grayscale
converting [WPF], images to grayscale
grayscale [WPF], converting images to
77935ff0-4500-4307-9710-96999dcf579f

How to: Convert an Image to Greyscale

This example shows how to convert an image to grayscale using xref:System.Windows.Media.Imaging.FormatConvertedBitmap.

Example

[!code-xamlImagingSnippetGallery_snip#FormatConvertedBitmapXamlExampleWholePage]

[!code-csharpImagingSnippetGallery_procedural_snip#FormatConvertedBitmapCodeExampleWholePage] [!code-vbImagingSnippetGallery_procedural_snip#FormatConvertedBitmapCodeExampleWholePage]

See also