Using TextRenderer.DrawText leads to various artifacts when drawing to transparent images. This class is added in order to workaround this issue. First it draws the text to a temporary image. Then it process the temporary image and fixes its artifacts. Finally the temporary image is drawn on the actual graphics object. Note that for drawing we use Color.Magenta as it gives us good, predictable result. After that the color of the text is changed from Magenta to the actual forecolor of the text when the image is processed
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2