Click here to Skip to main content
15,922,007 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioncrystal report..need help Pin
SamRST22-Sep-07 20:23
SamRST22-Sep-07 20:23 
Answercrystal report..need help Pin
SamRST23-Sep-07 4:33
SamRST23-Sep-07 4:33 
QuestionAdd a text label to an image Pin
tomsteven22-Sep-07 14:54
tomsteven22-Sep-07 14:54 
AnswerRe: Add a text label to an image Pin
Guffa22-Sep-07 15:30
Guffa22-Sep-07 15:30 
GeneralRe: Add a text label to an image Pin
tomsteven22-Sep-07 15:44
tomsteven22-Sep-07 15:44 
AnswerRe: Add a text label to an image Pin
Christian Graus23-Sep-07 0:13
protectorChristian Graus23-Sep-07 0:13 
GeneralRe: Add a text label to an image Pin
tomsteven23-Sep-07 4:18
tomsteven23-Sep-07 4:18 
GeneralRe: Add a text label to an image Pin
Luc Pattyn23-Sep-07 4:30
sitebuilderLuc Pattyn23-Sep-07 4:30 
Hi,

if you are already rendering the image, you can add text to it like so:
Graphics g=myPaintEventArgs.Graphics;
g.DrawImage(...);
g.DrawString(myText, myFont, ...);


But if you want to modify an image to include some text, get its graphics:
using (Graphics g=Graphics.FromImage(myImage)) {
    g.DrawString(myText, myFont, ...);
}
myImage.Save(...);



Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Add a text label to an image Pin
tomsteven23-Sep-07 5:12
tomsteven23-Sep-07 5:12 
GeneralRe: Add a text label to an image Pin
Luc Pattyn23-Sep-07 6:50
sitebuilderLuc Pattyn23-Sep-07 6:50 
QuestionHow to Hide IP while connecting to different web sites ? Pin
Rizwan Bashir22-Sep-07 10:13
Rizwan Bashir22-Sep-07 10:13 
AnswerRe: How to Hide IP while connecting to different web sites ? Pin
GuyThiebaut22-Sep-07 10:50
professionalGuyThiebaut22-Sep-07 10:50 
QuestionDirectX AudioVideoPlayback: LoaderLock Pin
codemunkeh22-Sep-07 5:30
codemunkeh22-Sep-07 5:30 
Questiondatabinding Pin
ejaz_pk21-Sep-07 21:28
ejaz_pk21-Sep-07 21:28 
AnswerRe: databinding Pin
pmarfleet22-Sep-07 0:51
pmarfleet22-Sep-07 0:51 
GeneralRe: databinding Pin
ejaz_pk23-Sep-07 9:56
ejaz_pk23-Sep-07 9:56 
GeneralRe: databinding Pin
pmarfleet23-Sep-07 10:49
pmarfleet23-Sep-07 10:49 
QuestionScreen size woes Pin
frankiebaby221-Sep-07 19:30
frankiebaby221-Sep-07 19:30 
AnswerRe: Screen size woes Pin
Christian Graus21-Sep-07 19:59
protectorChristian Graus21-Sep-07 19:59 
GeneralRe: Screen size woes Pin
frankiebaby221-Sep-07 20:34
frankiebaby221-Sep-07 20:34 
QuestionHow to write amount in words Pin
Swiss Mantoro21-Sep-07 15:55
Swiss Mantoro21-Sep-07 15:55 
AnswerRe: How to write amount in words Pin
Dave Kreskowiak21-Sep-07 16:11
mveDave Kreskowiak21-Sep-07 16:11 
GeneralRe: How to write amount in words Pin
Paul Conrad21-Sep-07 17:32
professionalPaul Conrad21-Sep-07 17:32 
AnswerRe: How to write amount in words Pin
Christian Graus21-Sep-07 16:12
protectorChristian Graus21-Sep-07 16:12 
AnswerRe: How to write amount in words Pin
parth.p22-Sep-07 0:45
parth.p22-Sep-07 0:45 

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.