Tech Support > Microsoft Windows > Development Resources > GDI+ string length in pixels
GDI+ string length in pixels
Posted by David W. Poole, Jr. on December 9th, 2003


On Tue, 9 Dec 2003 01:58:03 -0800, "Przemo Drochomirecki"
<pedrosch@gazeta.pl> was understood to have stated the following:

GetTextExtentPoint32?


--

The last song I started on my PC was: Rollin' - DJ Monk-vs-The Track Mack Remix-DJ Monk-vs-The Track Mack-New Old Songs
This is track 5 of 855 in the current playlist.

Posted by Dim St Thomas on December 9th, 2003


"David W. Poole, Jr." <spammersshouldbekilled.50.dwpj65@spamgourmet.com> wrote in message news:<iqaatvkidqbfitd74le3be1985n7d8ks4j@4ax.com>. ..
The GDI+ version is Graphics::MeasureString

Posted by Przemo Drochomirecki on December 9th, 2003


hi,
anyone know how to determine length (in pixels) of given string
(graphics.DrawString)?

thx in adv.
Przemo


Posted by Przemo Drochomirecki on December 10th, 2003




thx for both infos, to be honest, i simply want to draw some letter in
string with another colour, maybe there's simpler way to do it
than measuring string?

example:
ExAmple -> capitals are red, rest is white, font is not fixed-width


Przemo