03-14-2009 04:11 PM
I have an image in a PictureBox (.NET).
Is possible to save the image showed in the PictureBox in an archive (.jpg, .bmp or others formats).
Thanks!
03-14-2009 05:41 PM
03-14-2009 05:46 PM
03-15-2009 08:49 AM
jmcbee,
the main problem ís: "How to trasform pictureBox data into picture format?"
If I do this transformation, I will be able to use the VIs that you showed.
Thank you for help.
03-15-2009 09:35 AM - edited 03-15-2009 09:36 AM
The .NET PictureBox isn't the same as the picture control. jmcbee has them confused. In order to save a the image in a .NET PictureBox you need to get the image (via the Image property) and then call the Image class Save method. This is documented on MSDN.
http://msdn.microsoft.com/en-us/library/system.windows.forms.picturebox.image.aspx
http://msdn.microsoft.com/en-us/library/system.drawing.image.save.aspx
03-15-2009 12:31 PM
smercurio_fc,
I tried to save the image from .NET PicturBox via Image Property and calling the Image Class Save (String: Filename) but I hadn't success.
I'm not passing the path in the wright way. The VI always return the error NULL ObjectId.
Could Anybody help me!?
Thank you for help!
03-15-2009 08:26 PM
03-15-2009 09:23 PM
The complement of the Block Diagram is right down.
Thanks for help!
03-16-2009 08:57 AM
03-16-2009 09:05 AM - edited 03-16-2009 09:08 AM
Hi fernandob...,
there is also a command (SendMessage cmd) to send the image to the clipboard, you can then read it from there and store it to a file.
See this link http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/ff7893d5-0060-4456-ad25-8a331d8b4...
Mike