I have the following code:
var font = new Font("Arial", 50);
var texto = "Meu texto";
var res = Graphics.MeasureString(texto, font); // Está linha não funciona.
When compiling the following error is generated:
An object reference is required for the non-static field, method, or property 'System.Drawing.Graphics.MeasureString (string, System.Drawing.Font) '
What do I need to do to use MeasureString
?