Skip to content

Instantly share code, notes, and snippets.

View AlleSchonWeg's full-sized avatar
🏠
Working from home

AlleSchonWeg

🏠
Working from home
View GitHub Profile
@AlleSchonWeg
AlleSchonWeg / Program.cs
Created May 31, 2017 09:04
SimplePerfTest
using ImageSharp;
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
namespace ConsoleApp1
{
class Program
{
@AlleSchonWeg
AlleSchonWeg / Code.cs
Last active May 30, 2017 13:30
Text Transformation
private void DrawText(Graphics graphics)
{
using(Font font = new Font("Arial", 20, FontStyle.Regular, GraphicsUnit.Pixel))
{
// draw string as text without transformation
using(Brush brush = new SolidBrush(Color.Blue))
graphics.DrawString("Draw as text without transformation", font, brush, new PointF(10,10));
// draw string as text with transformation
GraphicsContainer container = graphics.BeginContainer();