all groups > c# > august 2003 >
You're in the

c#

group:

How to save a picture with graphic from a pictureBox


How to save a picture with graphic from a pictureBox lehar NO[at]SPAM jyde.dk
8/6/2003 11:39:00 PM
c#:
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.

Re: How to save a picture with graphic from a pictureBox Michael Mayer
8/7/2003 1:54:27 AM
might i suggest a google search of this ng for "save picturebox"
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&group=microsoft.public.dotnet.languages.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


[quoted text, click to view]

Re: How to save a picture with graphic from a pictureBox Michael Mayer
8/7/2003 2:00:20 AM
oh, just stumbled on this page while looking for something else, isn't
that how it always works ;-)
http://www.bobpowell.net/pictureboxhowto.htm

[quoted text, click to view]

AddThis Social Bookmark Button