LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting Picture to *.bmp file

Hi,

With the excellent pictures/ graphs that LabVIEW is able to produce, I
haven't been able to convert a picture (blue squiggly line datatype!) to a
pixmap or flattened pixmap for the purpose of saving as a JPEG/BMP file.

Can this be done? If so please let me know.

Regards,

Paul Conroy
TIP-CSIRO
Sydney, Australia
pconroy@tip.csiro.au
0 Kudos
Message 1 of 6
(3,532 Views)
Hi Paul,

Have you tried using the vi's in \labview\vi.lib\utility\printvi.llb?

Jeff



Paul Conroy wrote in article
...
> Hi,
>
> With the excellent pictures/ graphs that LabVIEW is able to produce, I
> haven't been able to convert a picture (blue squiggly line datatype!) to
a
> pixmap or flattened pixmap for the purpose of saving as a JPEG/BMP file.
>
> Can this be done? If so please let me know.
>
> Regards,
>
> Paul Conroy
> TIP-CSIRO
> Sydney, Australia
> pconroy@tip.csiro.au
>
>
>
0 Kudos
Message 2 of 6
(3,532 Views)
Hi Jeff,
Thanks for your advice. I tried using the printing vi's however in this
case I am attempting to save a picture (polar plot) to a file format so that
I can use it in a report later.

Regards
Paul Conroy


Jeff Abell wrote in message <01bebbd7$67d18660$f3c89b82@owen>
>Hi Paul,
>
>Have you tried using the vi's in \labview\vi.lib\utility\printvi.llb?
>

>Paul Conroy wrote in article
>> With the excellent pictures/ graphs that LabVIEW is able to produce, I
>> haven't been able to convert a picture (blue squiggly line datatype!) to
>a
>> pixmap or flattened pixmap for the purpose of saving as a JPEG/BMP file.
>>
>> Can this be done? If so please let me know.
0 Kudos
Message 3 of 6
(3,532 Views)
> Hi,
>
> With the excellent pictures/ graphs that LabVIEW is able to
> produce, I
> haven't been able to convert a picture (blue squiggly line
> datatype!) to a
> pixmap or flattened pixmap for the purpose of saving as a
> JPEG/BMP file.

Within Labview just select the picture you want press copy and past it
within paint. This does sound to easy am I misinterperting your question?

Erik Jan de Jong
0 Kudos
Message 4 of 6
(3,528 Views)
Hi Erik,
Thanks for the suggestion, however I wanted to automate the process of
saving the picture, and not do it manually. (Mainly because I am lazy and
want to do the PC to do everything!).

The truly excellent people at NI have now provided me with some functions
for doing saving picture indicators.
Regards,
Paul Conroy


Erik Jan de Jong wrote in message
<000701bebcb9$a65061d0$041606c0@eb_sw_4>...
>> Hi,
>>
>> With the excellent pictures/ graphs that LabVIEW is able to
>> produce, I
>> haven't been able to convert a picture (blue squiggly line
>> datatype!) to a
>> pixmap or flattened pixmap for the purpose of saving as a
>> JPEG/BMP file.
>
>Within Labview just select the picture you want press copy and past it
>within paint. This does sound to easy am I
misinterperting your question?
>
>Erik Jan de Jong
>
>
0 Kudos
Message 5 of 6
(3,528 Views)
I've come across the same problem you have, and the only (altough not very nice solution) is to write a subvi with the picture as input (and only the picture visable on the front panel!), set the picture draw area to show the entire picture and next use the invoke node "Get panel image" with only visable area set to "False". This creates a flattened pixmap wich you can use as input for the write to *.jpg, *.png or *.bmp vi's.

There is however one catch. The front panel has to be activated (shown) for a brief period of time, since otherwise the picture won't redraw the data. The size of the front panel is however not important, so I briefly open the front panel in a very tiny format somewhere at the bottom of the screen, so the user never notices that the screen was brie
fly active.

I know this method is not very nice, but since there seems to be no other way to convert the picture to flattened data it is (for now) the only solution I can think of.

I hope I've helped you with this information,

Marcel Kalf.
0 Kudos
Message 6 of 6
(3,528 Views)