Bruce,
Thanks. But that doesn't solve my problem. It looks as if when I draw text,
it will be all of the same font/size/style. I need to be able to mix and
match styles. So that I can have a single string with bold and/or italics as
part of it. Either that or have a way to figure out how big the text
rectangle would need to be to hold one part of the text, draw the piece that
is not bolded, make another rectangle right next to it and I can add the
bolded text, then right next to that, the next text, ....
What would really make it perfect would be if I could put in formatted text
or an RichText format string in.....
Thanks.
Jeffrey.
"Bruce Barker" <br******************@safeco.com> wrote in message
news:eY**************@TK2MSFTNGP15.phx.gbl...
use the graphics library (System.Drawing) to produce the bitmap image,
then convert the bitmap to gif. you will need to write an aspx page that
renders this image (that returns an image content-type), and have the main
page refer to with an img tag
<img src="genMyGif.aspx?id=1">
where you use the id parameter to id the text to generate. google this
group for download images for more help.
-- bruce (sqlwork.com)
"UJ" <fr**@nowhere.com> wrote in message
news:uE**************@TK2MSFTNGP09.phx.gbl...I have need to convert a text string (with formatting) to an image. This
is so that I can resize the image to different sizes and the formatting
stays exactly the same regardless of the size. I actually want the font
size to increase/decrease as the image grows/shrinks much the way text
does in a flash object. Is there an easy way to do this programmatically?
It needs to be done behind the scenes on my web site - user enters some
text - I produce something that will displays exactly the same way on all
screens regardless of how the machine is configured. I need to be able to
include things like bolding and italics if at all possible.
(I've looked at doing a flash object but I can't seem to find some way to
do it programmatically.)
TIA.