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")
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Save Icon in different sizes 2
PictureBox & GDI 8
Picturebox refresh problems 4
Panel with picturebox scrollbar 4
Icon Chalange 2
Stream 4
Drag Picturebox 4
Picturebox coordinates 1

Back
Top