PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I load a print screen image into a picture indicator?

Hi,
I am trying to load a printscreen image into a picture indicator without first saving it. I am currently doing it by acquiring and saving a print screen image, then reloading and displaying the bitmap file. This works, but it is not elegant and the colors are displayed wrong. (The SnapView.vi is from the G Toolbox for LabVIEW) Thanks for your help.
Peter Buerki
0 Kudos
Message 1 of 3
(3,576 Views)
Hello –

When you push the print screen button in your keyboard, the image is send (temporarily stored) to the clipboard.

You could call the Windows API to recover that image and send it to an indicator in the front panel. This Example Program can show you how to make Windows API calls; I think you might find it useful to get started in programming your application.

Hope this helps.

SVences
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,563 Views)
Thanks. I looked at this vi from the developper zone earlier. However, it does not help me. I do not know how to call the Windows API to recover the image once it is on the clipboard. (I have no experience with Win API calls, etc.)
0 Kudos
Message 3 of 3
(3,560 Views)