469,593 Members | 1,823 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,593 developers. It's quick & easy.

How to save a picture with graphic from a pictureBox

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
2 16154
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
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.

Similar topics

8 posts views Thread by Pavan Arise | last post: by
12 posts views Thread by yaya via DotNetMonster.com | last post: by
1 post views Thread by Fredrik Melin | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.