473,289 Members | 1,791 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,289 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 2069
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
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...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...

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.