LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to output 3D Surface Graph as image file (bmp or jpg or png)

I'd like to output a graph from the 3D surface.vi module as a regular image (like a JPG or BMP).  At this time, I'm going through an awkward process of taking a screen cap, then isolating the image with photoshop (painful and time consuming).

Any idea or input would be appreciated.
0 Kudos
Message 1 of 5
(3,021 Views)

RIght-click on the graph and "create...invoke node". On the diagram, select method "get image".

Save the output of "image data" as JPG, BMP, or PNG using the tools from the "Graphics Formats" palette.

(The code shows would get a 24bit PNG image)

See how far you get. Good luck! 🙂

Message Edited by altenbach on 08-12-2005 02:50 PM

Message Edited by altenbach on 08-12-2005 02:51 PM

Message 2 of 5
(3,017 Views)
Thanks!   I can't wait for Monday to try this out.

I'll report back with results.
0 Kudos
Message 3 of 5
(3,007 Views)

I don't expect the original poster to reply to this (v. old thread) but is it really this simple?  Do I not have to wire depth, rect, color table etc in the write to jpg/bmp/png VI? 

When I follow the instructions given (create>invoke node) I get what is shown in the attachment (LabVIEW 6i (6.0.2?) - note no pink 'image data').  When I wire a write to jpg VI to 'image' I'm told to wire all the other things I mentioned.

0 Kudos
Message 4 of 5
(2,763 Views)
"is it really that simple?" - yes!  See http://forums.ni.com/ni/board/message?board.id=170&message.id=17924&query.id=432639#M17924.  Everything does have to be wired but all the information's given! Smiley Very Happy
0 Kudos
Message 5 of 5
(2,744 Views)