By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,507 Members | 1,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,507 IT Pros & Developers. It's quick & easy.

How to save a picture with graphic from a pictureBox

P: n/a
Hallo

I have a pictureBox with a picture loaded from file, then I draw some
lines on the picture, and then I want to save the new picture.

Befor I can draw lines I have to create a Graphics object, with g =
pictureBox.CreateGraphic, and draw lines g.drawLines(....)

But when saving the picture, the new picture have no lines, it is only
a copy.
To save picture i use: pictureBox.save(.....)

what's wrong.

Lehar
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
might i suggest a google search of this ng for "save picturebox"
http://groups.google.com/groups?hl=e...nguages.csharp

see especially this thread:
http://tinyurl.com/j9q1
From: Jianren Lu
Subject: How to save the picture in PictureBox?
Newsgroups: microsoft.public.dotnet.languages.csharp
Date: 2002-06-28 03:01:35 PST

Hope that helps, let me know if you have any further questions!
mike
"Michael Lehar" <le***@jyde.dk> wrote in message
news:6f**************************@posting.google.c om...
Hallo

I have a pictureBox with a picture loaded from file, then I draw some lines on the picture, and then I want to save the new picture.

Befor I can draw lines I have to create a Graphics object, with g =
pictureBox.CreateGraphic, and draw lines g.drawLines(....)

But when saving the picture, the new picture have no lines, it is only a copy.
To save picture i use: pictureBox.save(.....)

what's wrong.

Lehar

Nov 15 '05 #2

P: n/a
oh, just stumbled on this page while looking for something else, isn't
that how it always works ;-)
http://www.bobpowell.net/pictureboxhowto.htm

"Michael Mayer" <mr*****@charter.net> wrote in message
news:OT**************@TK2MSFTNGP10.phx.gbl...
might i suggest a google search of this ng for "save picturebox"
http://groups.google.com/groups?hl=e...nguages.csharp
see especially this thread:
http://tinyurl.com/j9q1
From: Jianren Lu
Subject: How to save the picture in PictureBox?
Newsgroups: microsoft.public.dotnet.languages.csharp
Date: 2002-06-28 03:01:35 PST

Hope that helps, let me know if you have any further questions!
mike
"Michael Lehar" <le***@jyde.dk> wrote in message
news:6f**************************@posting.google.c om...
Hallo

I have a pictureBox with a picture loaded from file, then I draw

some
lines on the picture, and then I want to save the new picture.

Befor I can draw lines I have to create a Graphics object, with g = pictureBox.CreateGraphic, and draw lines g.drawLines(....)

But when saving the picture, the new picture have no lines, it is

only
a copy.
To save picture i use: pictureBox.save(.....)

what's wrong.

Lehar


Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.