LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to WRITE/SAVE picture data into BMP format

I can't figure out how to simply write the picturedata I created to a BMP, or whatever format using the picture format tools. It's easy to read a file and make a picture from the flat data.. However I've been trying all kinds of mindwarps to get the bloody picture to write back into a BMP file after making changes to the picture. How can you convert the picture data into flattened data again? The manual is extremely vague on this matter.
0 Kudos
Message 1 of 4
(3,209 Views)
Hi Swami,
to get the 'bloody' thing done you have to use the invoke node (method) GetImage of the picture indicator that returns the picture data.
I enclose a simple vi that lets you load a BMP file into a picture and save it back in a BMP file.
By default I set the image depth to 24.

Good luck,
Alberto
Message 2 of 4
(3,209 Views)
Thanks for the perfect response Alberto,.. I'd never had gotten to this solution myself. Well maybe in 1 year or so 😉

Swami
0 Kudos
Message 3 of 4
(3,209 Views)
Don't give a damn.
I bumped into it almost accidentaly myself.
As you said documentation is lacking!

Alberto
0 Kudos
Message 4 of 4
(3,209 Views)