Morten Wennevik [C# MVP]
11/20/2004 10:24:00 AM
On Sat, 20 Nov 2004 00:30:08 -0000, James Westgate
<jameswestgate@nospam.nospam> wrote:
> 1. Measure the size of your test using Graphics.MeasureString
> 2. Get the Width and height of your image from Bitmap.Width etc
> 3. Subtract 1 from 2, use Graphics.FromImage and Graphics.DrawString
>
> James
>
4. Before drawing the string, you might want to change the font size
based on image resolution or you might end up with different sized text.
I forgot the exact calculations but those should be easy enough using
something like (you might need to change things around)
Unknown font size Some value I forgot, possibly 1
----------------- = -------------------
Current font size Image.HorizontalResolution
--
Happy Coding!
Morten Wennevik [C# MVP]