Saving PictureBox ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hell
I tried to make a watermark... So .
I have a picturebox1..
Picturebox1.creategraphic.drawString("Jarod Ltd.",...
and it works..
But when I do
dim img as imag
img = picturebox1.image
img.save("c:\test.jpg"

after this picturebox is saved but... of course without my "Jarod Ltd." :(
How to save it with the caption ?
Jaro
 
Jarod said:
Hello
I tried to make a watermark... So ..
I have a picturebox1...
Picturebox1.creategraphic.drawString("Jarod Ltd.",...)
and it works...
But when I do
dim img as image
img = picturebox1.image
img.save("c:\test.jpg")

after this picturebox is saved but... of course without my "Jarod
Ltd." :( How to save it with the caption ?
Jarod

You are painting on the picturebox, not on the image. Have a look at
graphics.fromimage.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
* "=?Utf-8?B?SmFyb2Q=?= said:
I tried to make a watermark... So ..
I have a picturebox1...
Picturebox1.creategraphic.drawString("Jarod Ltd.",...)
and it works...
But when I do
dim img as image
img = picturebox1.image
img.save("c:\test.jpg")

after this picturebox is saved but... of course without my "Jarod Ltd." :(
How to save it with the caption ?

\\\
Dim b As New Bitmap("C:\foo.bmp")
Dim g As Graphics = Graphics.FromImage(b)
g.DrawString(...)
g.Dispose()
Me.PictureBox1.Image = b
b.Save("C:\goo.bmp")
///
 
Back
Top