LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display a color image in front panel.

Hi there,

How do I display a color image in front panel? Which graphic indicator should be used to display a color image? I do not want to use Imaq WindDraw.

Thanks in advance.

Hugh
0 Kudos
Message 1 of 19
(4,954 Views)
You can use a picture indicator...(from the graph->controls palette). You find VIs to read in the picture in the picture folder in vi.lib.
0 Kudos
Message 2 of 19
(4,954 Views)
I believe you'll find the PICTURE functions very useful for this. The nice thing about the picture functions is that you can keep daisy-chaining them together to add features....such as a grid, or a cursor, or even a photographic background. You can even animate the colors. Look in the Examples in the help files. They're pretty good.

Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 3 of 19
(4,954 Views)
Try this "draw flatten jpg to pic ctrl.vi"
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 19
(4,954 Views)
Thank you for your VI. It works well. I need some time to understand it. I have many years experience in Labview and very new to color imaging. A quick question: How do I display a image in a fixed picture control no matter image's spatial resolution.

Thanks again.

Hugh
0 Kudos
Message 5 of 19
(4,954 Views)
Thanks very much, Mads. I will take a look at the picture control.

Hugh
0 Kudos
Message 6 of 19
(4,954 Views)
Thank you very much, Eric, for your help. I will take a look at the examples.

Hugh
0 Kudos
Message 7 of 19
(4,954 Views)
Me too, not really having much exp. in color imaging.

I am not sure if I understand your question, but if I do, fixing the property node "DrawAreaSize" for picture control should do the job.

Hope this is not a nonsense :<

Cheers!
Others might be able to give you a better answer.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 8 of 19
(4,954 Views)
Hi Ian,

Hope I did not mess up your name. DrawAreaSize does not do exactly what I want. My question was how to fit a image into a picture control in fixed size. Picture control does not resize itself to fit the images in different spatial resolution. Thanks again.

Hugh
0 Kudos
Message 9 of 19
(4,954 Views)
My Image Toolbox VIs can resize pixmap data, and display images. Support bmp, gif, jpg, png, tiff, wmf, emf, ico, etc. You can download demo at:
http://gtoolbox.yeah.net

George Zou
George Zou
0 Kudos
Message 10 of 19
(4,954 Views)