I am generating a .png image that contains a text dynamically written.
.png
I need to create the bitmap with the minimum width for file size reasons.
How do I do this?
Use Graphics.MeasureString() to compute the width.
Graphics.MeasureString()