26 September 2018
Very often when coding we need to output the current state of an object to show it or store it for later retrieval. This article will teach you how to convert any object to a JSON string using one of the most common dependencies on Nuget.org: Newtonsoft's Json.NET
18 September 2018
Here is a C# class that allows you to apply a mask to an existing image.
12 August 2018
G-Zip Compression and decompression using C# and the .Net framework. This article will teach you how to compress and decompress data in the G-Zip format.
20 July 2018
This article will teach you how to convert a color image to grayscale using C# and the .NET framework. For an in-depth explanation of grayscale conversion please visit the wikipedia page: https://en.wikipedia.org/wiki/Grayscale.
20 December 2017
When we have to resize an image to exact new dimensions while keeping it's aspect ratio (thus avoiding distortion of the image) with C# we can take advantage of the Graphics class. The Graphics class exposes method DrawImage which allows us to resize an existing source image and draw it onto the image referenced by the Graphics instance.