LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to load the bitmap file programmatically in to the front panel?

I wanted to load Bitmap file programmatically in to the front panel. Can any one guide me ?
0 Kudos
Message 1 of 7
(3,173 Views)
Hi Selva

Here you can find a little VI which loads a Bitmap file into a picture control:
http://ae.natinst.com/devzone/explprog.nsf/41ee12ddba6c766a8625684700691463/582e53e2c82a4dbe86256a8d006a4a82?OpenDocument
Regards,
Luca
0 Kudos
Message 2 of 7
(3,173 Views)
The link page is invalid. Get me the corrected link.
0 Kudos
Message 3 of 7
(3,173 Views)
Ok, here is the VI.
Regards,
Luca
0 Kudos
Message 5 of 7
(3,173 Views)
Thanks and it helped me a lot.
Is it possible to open a JPEG file ? If you have any sample VI. Kindly post it.
0 Kudos
Message 6 of 7
(3,173 Views)
Just replace Read BMP by Read JPG vi.
VI's founds in Graphics&Sound\Graphic Formats pallete.
0 Kudos
Message 7 of 7
(3,173 Views)
Very simple.
1) Put picture indicator on the FP.
2) Use "Read BMP" vi.
3) Use draw flattened pixmap vi.
4) Connect all outputs of "Read BMP" to all inputs "Draw flattened pixmap".
5) Connect output new picture of "Draw ..." to picture indicator.

Attached example of this procedure.
0 Kudos
Message 4 of 7
(3,173 Views)