Get size (in pixels) of a string

  • Thread starter Thread starter Will
  • Start date Start date
W

Will

I need to know the size (in pixels) of a string painted on a graphic
component

Any idea?

tnx
 
Hello,
you can use MeasureString method of Graphics object to get string's
width and height in pixels..

HTH. Cheers
Maqsood Ahmed [MCP,C#]
Kolachi Advanced Technologies
http://www.kolachi.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top