Contains string measurments.
Namespace:
Aurigma.GraphicsMill.AdvancedDrawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public struct StringMeasure
using (var bitmap = new Bitmap(200, 80, PixelFormat.Format24bppRgb, RgbColor.White)) using (var graphics = bitmap.GetAdvancedGraphics()) { var font = graphics.CreateFont("Arial", 20); StringMeasure stringMeasure = font.MeasureString("String Metrics"); Console.WriteLine("String Metrics:"); Console.WriteLine(" Width: {0}", stringMeasure.Width); Console.WriteLine(" Height: {0}", stringMeasure.Height); Console.WriteLine(" Ascender: {0}", stringMeasure.Ascender); Console.WriteLine(" Descender: {0}", stringMeasure.Descender); }