Click here to Skip to main content
15,923,197 members
Home / Discussions / C#
   

C#

 
GeneralRe: help new to C and problems with loops Pin
sreejith ss nair18-Oct-04 19:27
sreejith ss nair18-Oct-04 19:27 
GeneralRe: help new to C and problems with loops Pin
Dave Kreskowiak19-Oct-04 3:55
mveDave Kreskowiak19-Oct-04 3:55 
Generalcollection question Pin
isittheweekendyet18-Oct-04 14:16
isittheweekendyet18-Oct-04 14:16 
GeneralRe: collection question Pin
Nick Parker18-Oct-04 15:16
protectorNick Parker18-Oct-04 15:16 
GeneralRe: collection question Pin
sreejith ss nair18-Oct-04 19:40
sreejith ss nair18-Oct-04 19:40 
Generalpassing a function name as a paramter Pin
njaromack18-Oct-04 12:34
njaromack18-Oct-04 12:34 
GeneralRe: passing a function name as a paramter Pin
S Sansanwal18-Oct-04 13:25
S Sansanwal18-Oct-04 13:25 
GeneralRe: passing a function name as a paramter Pin
njaromack19-Oct-04 4:36
njaromack19-Oct-04 4:36 
Questionstring ctor?? Pin
HahnTech18-Oct-04 12:33
HahnTech18-Oct-04 12:33 
AnswerRe: string ctor?? Pin
Nick Parker18-Oct-04 15:29
protectorNick Parker18-Oct-04 15:29 
GeneralRe: string ctor?? Pin
HahnTech18-Oct-04 16:28
HahnTech18-Oct-04 16:28 
GeneralRe: string ctor?? Pin
Nick Parker18-Oct-04 18:08
protectorNick Parker18-Oct-04 18:08 
Questionhow to make list in property grid? Pin
AlanJones18-Oct-04 11:10
AlanJones18-Oct-04 11:10 
AnswerRe: how to make list in property grid? Pin
Heath Stewart18-Oct-04 11:46
protectorHeath Stewart18-Oct-04 11:46 
GeneralRe: how to make list in property grid? Pin
AlanJones19-Oct-04 10:01
AlanJones19-Oct-04 10:01 
GeneralRe: how to make list in property grid? Pin
Heath Stewart19-Oct-04 11:07
protectorHeath Stewart19-Oct-04 11:07 
GeneralRe: how to make list in property grid? Pin
AlanJones23-Oct-04 13:00
AlanJones23-Oct-04 13:00 
GeneralUsing SignatureCapturing in PocketPc Pin
mathon18-Oct-04 10:26
mathon18-Oct-04 10:26 
GeneralRe: Using SignatureCapturing in PocketPc Pin
Nick Parker18-Oct-04 15:37
protectorNick Parker18-Oct-04 15:37 
GeneralDataGrid Set Column Width Pin
mfcuser18-Oct-04 10:03
mfcuser18-Oct-04 10:03 
GeneralRe: DataGrid Set Column Width Pin
Heath Stewart18-Oct-04 11:53
protectorHeath Stewart18-Oct-04 11:53 
GeneralRe: DataGrid Set Column Width Pin
mfcuser19-Oct-04 8:03
mfcuser19-Oct-04 8:03 
GeneralRe: DataGrid Set Column Width Pin
Heath Stewart19-Oct-04 12:44
protectorHeath Stewart19-Oct-04 12:44 
GeneralText on Image control Pin
JAntonaccio18-Oct-04 9:31
JAntonaccio18-Oct-04 9:31 
GeneralRe: Text on Image control Pin
Heath Stewart18-Oct-04 11:50
protectorHeath Stewart18-Oct-04 11:50 
So what's your question?

If you want to know how to do this, there's many articles here on CodeProject and other sites about drawing images in ASP.NET (BTW, next time post ASP.NET-related questions in the ASP.NET forum) either to the response stream or to a persistent file (can be dangerous).

Specifically, read the documentation for the Graphics.MeasureString and Graphics.DrawString methods, which also provide examples.

You could even load-up a template image using either the Bitmap constructor or either Image.FromFile or Image.FromStream, call Graphics.FromImage, and draw your text (always remember to call Graphics.Dispose when finished).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.