LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible?

Hi, is it possible to display jpeg pictures without using the database? such as providing a path for the picture. i cant seem to display the jpeg picture when i used the build path with read from jpeg. Thanks for reading.
0 Kudos
Message 1 of 4
(2,881 Views)

I don't know what "database" you are referring to, but yes, you can display a JPEG easily enough.

 Use READ JPEG FILE from the GRAPHICS and SOUND | GRAPHICS FORMAT palette

 

Feed the IMAGE DATA to the DRAW FLATTENED PIXMAP in the GRAPHICS and SOUND | PICTURE FUNCTIONS palette.

 

Feed the PICTURE output into a PICTURE indicator. 

 

You'll have to extract the size info and set the picture indicator's size to match, but that's not hard.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 4
(2,871 Views)
Hi, Thanks for the guidance. i wonder if this is possible with gif files. i tried all the 3 file format but none could work with gif files. do you mind telling me how i could extract size info & making the picture box match?
0 Kudos
Message 3 of 4
(2,828 Views)

I don't know why, but GIF files are not directly supported by LabVIEW.

 

Take a look at reply #16 of this thread:

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

 

There's a program called TerraView, which I mentored, and my apprentice at the time wrote.

It used a library dealing with QuickTime to decode GIF images from Terraserver and display them.

 

I don't remember the details now, but they're in there somewhere. 

 

 As far as the other things, try this:

What have you tried? 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 4
(2,824 Views)