Sometimes it is necessary to perform modifications on the image based on the values of particular pixels. Of course, this is possible, and you will learn how to do it in this recipe.
As an example, you will create an application that recolors all light parts of the image to black by analyzing the values of the following pixels. If the R (red), G (green), and B (blue) values are in the range [175, 255], the pixel is recolored to black.
To step through this recipe, you only need the automatically generated project.
To prepare an example that loads an image and recolors light parts of it, perform the following steps:
WriteableBitmapExlibrary using the NuGet Package Manager.