LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

saving a graph control and text message control simultaneously in JPEG format

In my application I can save a Graph control in a .jpg file format . But on the panel there is a graph and a text message control just above the upper border of the Graph control .So I want to save the graph control along with   the text message .To accomplish this purpose what should I do inform me plz ?
 
Regards
Subrata
0 Kudos
Message 1 of 4
(3,423 Views)

Available options in CVI are to individually save controls or to save the whole panel in bmp, jpeg or png format: there is no native possibility to save more controls on the same image. In your case I may see different options:

1. The panel contains only a few if no more controls than those you are interested to: save the whole panel image, hiding unwanted control if necessary and desired

2. The panel has a more complex structure: create graph and text message on a child panel located on your main panel and save the child panel only. If the child panel is created without border and with the same background color as the parent panel your application will have the same aspect as it has now but you will gain this additional ability

3. Create an hidden panel duplicating the controls you are interested to and save the hidden panel. This way you can introduce some additional details that on the application panel will be unnecessary and / or unwanted (date / time the image was created or other items you can think of)



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,419 Views)

Hello Roberto B ,

                       I find first suggestion easy one ,but I don't understand how to save the panel and which function should I use ?

                      Plz reply soon .

Regards

Subrata       

0 Kudos
Message 3 of 4
(3,394 Views)
You can use GetPanelDisplayBitmap and SaveBitmapToXXXFile functions.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 4 of 4
(3,387 Views)