LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving color map from intesity graph to jpg

Hi to all..
 
I have 2D array ( of numbers) and I use intensity graph to convert the numbers to a color map.
 
But I want to save this color map to jpg file (as image.. )
 
How do I do that?
 
Thanks
 
Eruvi
 
 
0 Kudos
Message 1 of 9
(3,916 Views)

A very similar question was asked and answered here just a few days ago:

http://forums.ni.com/ni/board/message?board.id=170&message.id=166951

Gotta love that "Search" feature,
-D

0 Kudos
Message 2 of 9
(3,912 Views)
But I need Intesity graph ( for every x,y position I have a value ). not XY graph..
 
Thanks
0 Kudos
Message 3 of 9
(3,903 Views)

In the afore-mentioned post, I described two methods of getting a JPG image of an XY Graph...one method was specific only to Waveform Graphs and XY Graphs (the "Export Image" method), while the other method I described ("Get Image" method and Graphics Formats VIs) will work for any control type.  So again I say, use the "Get Image" method to get a flattened image of the Intensity Graph, then use the Graphics Formats VIs to save that flattened image to a JPG file.

Good luck,
-D

0 Kudos
Message 4 of 9
(3,899 Views)

First,thank you very much.

But the problem is that I don't want to save the background of the graph ( e.g.  legend , graph frame)

I want to write to the jpg file only the image within the intensity graph.

Eruvi

 

0 Kudos
Message 5 of 9
(3,894 Views)

In that case, I would make a copy of the Intensity Graph, and deselect every option under the "Visible Items" right-click menu.  At that point, all that should be left would be the gray frame of the Intensity Graph.  At this point, you can use the Paintbrush Tool, right-click on the gray border, and choose the 'T' in the color picker to make it transparent.  At this point, your Intensity Graph should only show the colored graph region and nothing else.  Then you can use the method I described to export the image to disk.  I have attached a screenshot of a front panel of a VI with an Intensity Graph with all parts other than the graph region made non-visible.

Hope this helps,
-D

Message Edited by Darren on 02-15-2006 11:00 AM

0 Kudos
Message 6 of 9
(3,893 Views)

Thank you very very much

It's absolutely heklp me. I'm appreciate your help

Eruvi

0 Kudos
Message 7 of 9
(3,885 Views)

hi.. mr Darren

 i do not think the way you have told will work..

i think it can be done by flattening the image and then write to jpg image method..

can you please post the vi indicating what you actually want to say or do?

thanks

do not hesitate to give kudosSmiley Happy
0 Kudos
Message 8 of 9
(3,421 Views)
Moved to here.
0 Kudos
Message 9 of 9
(3,398 Views)