LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Panel to JPEG with Title/Menus/Border

I used the attached method to programmatically save my front panel image to
JPEG file. The problem I am having is that it does not save the Title Bar,
Menus, or Border and I can't find any options to turn these on like you
would be able to do if printing. Does anyone know how I can
programmatically save to JPEG file and include the Title Bar, Menus, and
Border so you get everything you see on the screen?



0 Kudos
Message 1 of 16
(3,698 Views)
Try Image Toolbox:

http://www.geocities.com/gzou999/imgtool.htm
George Zou
0 Kudos
Message 2 of 16
(3,688 Views)
Zou,

The only function I saw that might work is SnapView to Flattened Pixmap.vi
but it looked like the only way it would work would be if you know the exact
size and location of the window you want to grab. This would be difficult
if the panel has been moved or resized. Is there a way to just tell it to
grab the panel of a named VI?

Also, what kind of licensing/pricing/installation issues are there with this
toolkit? The application I want to use this for is a product that will sell
numerous units and I don't want to have to pay royalties for each unit or
have a more complicated installation than I already have with the LabVIEW
application and NI-DAQ installations.

Thank you for your help - Neal.

Does anyone else know of a strictly LabVIEW solution to grab the entire
panel and save to JPEG?

"zou" <x@no.email> wrote in message news:183900@exchange.ni.com...
> Try Image Toolbox:<br><br> http://www.geocities.com/gzou999/imgtool.htm


0 Kudos
Message 3 of 16
(3,680 Views)
Neal,

Property Node->Front Panel Window->Panel Bounds
can give you the panel rect, you can add/subtract edges (fixed number) to get the rect you want, even if user moved the window.

There is a new VI (SnapView XP, LV7.1) in G Toolbox (http://gtoolbox.yeah.net) to capture a window without specifying rect:
"Capture the specified window (even if the window is outside screen boundary, or convered by other windows), and save to the specified path. Support bmp, jpg, gif, png, and tiff file format.
Require WinXP."

No additional installation needed if you build your application (with my VIs) into exe.

No extra cost for distribute your application (built with my VIs) unless you make massive distributions (thousands of copies).
You can always get one more license to make more distributions.

George Zou
George Zou
0 Kudos
Message 4 of 16
(3,668 Views)
Zou,

I tried downloading the demo but it was for LabVIEW 6.1 and wouldn't run in
LabVIEW 7.0. Can I get a demo for LabVIEW 7.0 to try?

Also, for purchase it looks like you offer LabVIEW 6.1 and 7.0 versions of
your program. What about LabVIEW 7.1 and other future versions of LabVIEW?


0 Kudos
Message 5 of 16
(3,657 Views)
>I tried downloading the demo but it was for LabVIEW 6.1 and wouldn't run in
>LabVIEW 7.0. Can I get a demo for LabVIEW 7.0 to try?

I'll try to make one. Currently, It's in LabVIEW 7.1.

>Also, for purchase it looks like you offer LabVIEW 6.1 and 7.0 versions of
>your program. What about LabVIEW 7.1 and other future versions of LabVIEW?

Both G Toolbox and Image Toolbox are available is LabVIEW 7.1.
There will be a new release for each future version of LabVIEW.

George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 6 of 16
(3,644 Views)
SnapView Demo is available now at:
http://www.geocities.com/gzou999/demo.htm
George Zou
0 Kudos
Message 7 of 16
(3,633 Views)
Do you have a demo for the Image Toolbox for LabVIEW 7.0? My application
runs on various Windows O.S.s so I can't use the XP SnapVIEW demo.

Also, in the Image Toolbox "Write Image File XP.vi" can you set the JPEG
quality to 100% like I do with the LabVIEW function? This is important for
creating non-grainy looking JPEGs.


0 Kudos
Message 8 of 16
(3,616 Views)
Actually, what I want to know is if there is a non-Windows XP specific
function that can save a window to JPEG file with 100% quality and if you
have a demo of this for LabVIEW 7.0.


0 Kudos
Message 9 of 16
(3,617 Views)
Save to jpeg directly require WinXP.

Or you can specify a RECT, and get the flattened pixmap, using NI's VI to save it to a jpeg file.

George
George Zou
0 Kudos
Message 10 of 16
(3,611 Views)