An application may not only present images, but also modify them, such as by rotating, flipping, adjusting contrast, or by adding some additional shapes to it. Such features can be used to allow a user to adjust the photo after taking it using a camera or to create some special effects. Such a task is significantly simplified by the WriteableBitmapEx
library (
https://github.com/teichgraf/WriteableBitmapEx/
), which can be downloaded using the NuGet Package Manager, as you will see in this recipe.
As an example, you will create a simple application that loads the Image.jpg
file from the Assets
directory and performs a set of modifications, namely adjusting contrast and brightness, vertical flipping, as well as drawing two rectangles. At the end, the modified version will be presented in the user interface.