Click here to Skip to main content
15,885,546 members
Articles / Programming Languages / C#

Bypass Graphics.MeasureString limitations

Rate me:
Please Sign up or sign in to vote.
4.73/5 (45 votes)
22 Apr 2003LGPL31 min read 426.2K   89  
This sample code computes the width of the string, as drawn by Graphics.DrawString
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Web Developer
Switzerland Switzerland

Pierre Arnaud got a Ph.D. in computer science at the Swiss Federal Institute of Technology; he currently works both as an independent contractor on hardware and software projects at OPaC bright ideas and as a senior software designer at EPSITEC.


Pierre was a key contributor to the Smaky computer, a real time, multitasking system based on the Motorola 680x0 processor family.


Now, Pierre works on his spare time for the Creative Docs .NET project: it is a vector based drawing and page layout software based on .NET and AGG.


Comments and Discussions