04-11-2012 07:37 AM
Hi everybody 🙂
I have two questions for you !
First, I need to convert a bmp file into binary.
What i'm supposed to do is : open the bmp fil with a file dialog, unflatten it to use it for other stuffs (convert to greyscale, use a median filter etc), and after modifying it, i would like to save it. So I used the flatten pixmap vi then de write bmp file vi. But here is my problem : it still write the new file into txt, and not bmp ! 😕
Second question : I would like to convert the same bmp file into binary. I know how to go from binary to bmp but not the inverse.
Any help 🙂 ?
Thanks for all !
Valentine
(If you need more information, just tell me !)
Solved! Go to Solution.
04-11-2012 08:20 AM
Explain how you have done for saving the bmp file to binary file. Post a snippet of your code
04-11-2012 08:43 AM
Oh god i'm so sorry, i made a mistake in my explanation :
First problem is how to save the modified bmp-file in a new bmp file
and second problem is to convert the same bmp file into binary !
So sorry for the misunderstanding!
04-11-2012 08:56 AM
Converting simply a file that is in a specific location means you can follow the code shown below
But am not sure about the MacOSX.
04-11-2012 09:33 AM
Thanks a lot ! 🙂
It's what i needed !!
04-12-2012 05:14 PM
Hell VGans,
In the example provided I see that a sequence structure is being used.
In this case however you could just remove it, because it doesn't seem to serve a purpose.
Please also check this link about when to (and when not to) use sequence structures:
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/avoid_overusing_sequence_structures/