473,322 Members | 1,522 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Edit PictureBox Image (Bitmap) !!!

Atran
319 100+
Hello everybody, how I can edit the picturebox image?
I want to edit the image using something like "magic wand tool".
"Magic Wand Tool" is a tool in photoshop, this tool takes a part of the image I selected, then I save the part selected to a file (image file)............
--------------------------------------------------------------------------------------------------
If you cant do that way, try to draw a simple line on the image, after that saving the image but When we open the image from the directory: we must see the image with the line.
Thanks for your help.
Jun 9 '07 #1
2 2070
Graphics g;

g = yourPictureBoxImage.CreateGraphics();


from now, you can do anything you fancy through the g handler.

Have fun !
Jun 9 '07 #2
Atran
319 100+
Graphics g;

g = yourPictureBoxImage.CreateGraphics();


from now, you can do anything you fancy through the g handler.

Have fun !
Thanks for your help.
Jun 10 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: yaya via DotNetMonster.com | last post by:
Hi, I have a picture box with circles and rectangles, and I wana save all the images into a jpg file, i tried pictureBox1.Image.Save(@"c:\1.jpg"); but I got and error...
2
by: Just Me | last post by:
I do the following where sss is a string equal to a filename. PictureBox.Image = = New Bitmap(sss) It occurred to me that the file will be locked until the picturebox is disposed at the...
4
by: Peter | last post by:
If I have the image 'Myimage.gif' in my application directory, how do I load this image into a variable, and then... set this = to a picturebox image property. I do not want to directly assign...
0
by: dlamar | last post by:
I'm using VB.NET with 2.0 - I have a number of PictureBoxes in my application - all of which use a context menu to change the associated Image to one of 5 options. I need to maintain the state of...
2
by: Frank | last post by:
For various reasons I want to use a PictureBox to display images. That is I want sometimes to assign an Image to the PictureBox Sometimes I want to draw on that Image. What are the reasons for...
0
by: jamesjames | last post by:
Hello, could anyone tell me how to save a bitmap from picturebox.image as a 24bpprgb bitmap? picturebox.Image.Save(path, ImageFormat.Bmp) saves a 32bpprgb bitmap and Bitmap bmp =...
3
by: Andrzej | last post by:
I have a picturebox on my C# .NET form. The picturebox size mode is set to zoom. I then load an image into that form and display it. As the user moves the mouse over the form, I want to get and...
4
by: Jerry West | last post by:
I have a routine that updates a PictureBox image every x seconds. I do this by first loading an array with the path to all of the images. I then generate a random number to use as the index of the...
0
by: ramya naidu | last post by:
Hai friends i have cod eto draw and save picture in textbox and i need to save that image so iam using this code when i save the image and reopen it is not saving plz any one help me i have written...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.