From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-09-2013 11:20 PM
@Ranjeet_Singh wrote:
Why don't you store the array of pixels values to clipboard and later retrieve this only and show the image to user. This will solve the problem
That makes no sense. If your clipboard has an image that you got from some other program, exactly how to you "store the array of pixel values"?
09-09-2013 11:27 PM
That make sense..What he says he can read text but not image.May be image file he is not able to read. So I asked him to store the pixels values using IMAQ IMAGE TO ARRAY and store the values. Later retrieve these values only and convert to image.
09-10-2013 04:11 AM
Hi Ranjeet,
you don't understand what I need. I need to get an image from the clipboard, unfortunatley it's not working in an executable. It's returning the last text (image) data.
Ton
09-10-2013 04:19 AM
Ton,
I give up, and use .net node to replace it. Refer to below code image, hope it is useful for you.
Home--colinzhang.net: My Blog
09-10-2013 06:33 AM
Who stores image in clipboard?
Is it done by your exe file
09-10-2013 08:19 AM
Ranjeet, Please pay attention.
Are you telling me you have never needed to take a screenshot from somewhere on your screen, and then paste it into some other document such as a Word File, Excel, or Microsoft Paint?
How do you think that image data gets from one application to the other? IT IS THROUGH THE CLIPBOARD! There are no files involved whatsoever. So maybe Ton is trying to get LabVIEW to access that image data from the clipboard to work with, without going through several other steps to manually take it to a file to read it back into LabVIEW.
09-10-2013 11:19 PM
Unfortunately the .net method does not work for me (the clipboard reference is null) and I cannot seem to find a valid constructor...
My current workaround is using greenshots with a fixed config that stores the print-screen action in a pre-defined place.
However I just want to report this bug.
Ton
09-11-2013 01:17 AM
What is the greenshots? i'm sorry for my interest.
Home--colinzhang.net: My Blog
09-11-2013 01:22 AM
@TCPlomp wrote:
My current workaround is using greenshots with a fixed config that stores the print-screen action in a pre-defined place.
You could probably also use the VIs Rolf linked to in the LAVA thread. As far as I know, they should work (although they probably need to be tested on newer versions of Windows to make sure).
09-11-2013 04:03 AM
@colinzhang wrote:
What is the greenshots? i'm sorry for my interest.
Greenshot is a screen capture tool. Just google it.