Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Is there anyway to lay text on top of an image in a windows app and save it all as an image?
Stress is directly associated with programming. But if I keep moving on to new stresses, then I am doing my job correctly!
  • *Experts*
Posted

You could create a graphics object from an image and then draw to it and save.

Dim GR As Graphics = Graphics.FromImage(PictueBox1.Image)
GR.DrawString("SOME TEXT", New Font("Tahoma", 72), New SolidBrush(Color.Blue), 100, 100)
PictureBox1.Image.Save("imagepath")

This is assuming your image is in a picturebox but you can change it to any Image object.

Posted
you are the f-ing MAN!!!
Stress is directly associated with programming. But if I keep moving on to new stresses, then I am doing my job correctly!
Posted
by the way, do you just know all this stuff off hand or what kind of resource do you use?
Stress is directly associated with programming. But if I keep moving on to new stresses, then I am doing my job correctly!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...