LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Content of a picture control

I have a picture control in a VI I am working on, and want to make it display the image currently stored in the clipboard. The plan, once this gets working, is to replace the picture with an array of pictures, each with a unique image. (A filmstrip type thing used to display screenshots taken.) Any thoughts?
 
---God's Templar---
 
P.S. Could anyone recommend a book on working specifically with pictures in LabVIEW? I seem to be running to image issues a lot.
0 Kudos
Message 1 of 6
(3,396 Views)

No book but I can offer this thread to start.

If you chase down all of the links provided in that Nugget and all of the links contained in the various threads, you should be well n your way to getting dangerous.

I am not sure if I follow your idea. Have you also looked at the Picture Ring?

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(3,386 Views)

For copying an image from the clipboard, there's a private Application class method which you can see if you download the LLB here. To learn more about private methods and properties you should check out the LAVA forums VI scripting forum.

For more complex interactions with the Windows clipboard, check out Rolf's attachment here.


___________________
Try to take over the world!
0 Kudos
Message 3 of 6
(3,378 Views)
Maybe this will help. The comments explain what I'm trying to do. Thanks to whoever wrote the original VI (no author name given, or I would give proper credit). I modified it a bit to better suit this application.
0 Kudos
Message 4 of 6
(3,356 Views)

I don't really understand your problem. I suggest you simply create an array of picture controls and insert the picture into it (use the method from the thread I linked to earlier). You can enable the horizontal scrollbar for the array control. 
If you need to monitor which keys were previously pressed, use an event structure with the Key Down event and insert the key into an array if it is not found in it already (use Search 1D Array).

Even though you're not interested in resizing at the moment, you might find this useful.


___________________
Try to take over the world!
0 Kudos
Message 5 of 6
(3,346 Views)
I'd put all the (trunced or scaled) images in one picture control (with Draw Flattened Pixmap, with an offset added to the rect). Then I'd use an event to see if the user clicked it, and with a simple calculation, see which picture the user clicked on.


Regards,


Wiebe.
0 Kudos
Message 6 of 6
(3,324 Views)