Answers for "calculate string length vs pixels c#"

C#
0

calculate string length vs pixels c#

using (System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(new Bitmap(1, 1)))
{
    SizeF size = graphics.MeasureString("Hello there", new Font("Segoe UI", 11, FontStyle.Regular, GraphicsUnit.Point));
}
Posted by: Guest on April-19-2021

C# Answers by Framework

Browse Popular Code Answers by Language