LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Binary Monochrome bitmap

Does anyone know of a way to save a pixmap stream to a binary monochrome bitmap?
Im currently attempting to use the Pixmap to bmp vi with the bit depth set to 1, but the files are unreadable by any program in windows.
0 Kudos
Message 1 of 4
(3,260 Views)
Hi ASwehla,
I attached a VI, which does, what you need. If you only want to convert the bmp, for performance reasons you don't need the picture indicator.

Greets, dave

P.S. I saved it in 8.0, if you can't open it, here is the BD


Message Edited by daveTW on 11-30-2006 05:25 PM

Greets, Dave
Download All
0 Kudos
Message 2 of 4
(3,255 Views)
thats basicaly what im doing and none of the bmp files are readable, but if i set it to 24 or 16 bit depth it's fine.  does it make a differance that im using a picture i created within the vi, insted of one created from a pre existing bitmap??
0 Kudos
Message 3 of 4
(3,246 Views)
Hi,
I think, it doesn't matter, what content the Picture indicator holds (whether it is from a bmp file or drawn by yourself with the picture functions). I tried it myself and i could open 16, 256 16K, 32K color bmps and 24 bit bmps. All were displayed correctly and converted to a b/w bmp.
So there are some things, I don't understand:
  1. What program do you use to view the bmp files?
  2. When you start the VI I attached, can you see the bmp files you loaded in the indicator?
  3. What files do you set to 24 or 16 bit depth, the input files? The VI "Read BMP File" should open any bit depth correctly (as I experienced myself, see above).
Could you open the VI I attached?

Greets, Dave
Greets, Dave
0 Kudos
Message 4 of 4
(3,234 Views)