![]() |
|
|
|||||||
![]() |
ASP Net - System.Drawing For Drawing Text Images |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
There are a lot of examples out there, but I was hoping something could
help me further. I'd like to draw text (unknown length) to an image, but then crop the image to the height and width of the text. Is this possible? I'm guessing I can get the height from the Font.Height property. But how do I go about getting the width of the drawn text? Also, are there any tip for drawing fairly smooth fonts? Thanks, Jason jjbutera@hotmail.com |
|
|
|
|
#2 |
|
Posts: n/a
|
Check out the Graphics.MeasureString() method for measuring your text.
And for smoothing, check out the Graphics.SmoothingMode property. -- HTH, Kevin Spencer Microsoft MVP ..Net Developer You can lead a fish to a bicycle, but it takes a very long time, and the bicycle has to *want* to change. <> wrote in message news: oups.com... > There are a lot of examples out there, but I was hoping something could > help me further. I'd like to draw text (unknown length) to an image, > but then crop the image to the height and width of the text. Is this > possible? > > I'm guessing I can get the height from the Font.Height property. But > how do I go about getting the width of the drawn text? > > Also, are there any tip for drawing fairly smooth fonts? > > Thanks, > > Jason > Kevin Spencer |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Blur Images Display | DKS | General Help Related Topics | 0 | 06-03-2008 04:14 PM |
| Put cursor at the end of input text | peace2007 | Software | 1 | 10-17-2007 11:41 AM |
| How to keep images on DVD from being copied | WVAngel | Software | 0 | 11-18-2006 03:39 AM |
| Memories on TV 3 and Text | alca11 | Software | 0 | 07-20-2006 09:32 PM |
| SONY DVD RW DW-G120A SOMETIMES FAILS...... | atlantic965 | DVD Video | 0 | 06-18-2006 10:36 PM |