cancel
Showing results for 
Search instead for 
Did you mean: 

clipboard

Alfred76
Member

clipboard

hi, how can i read a image from the clipboard and display it in a
labview-panel? (i can read and display .bmp files)
thx
9 REPLIES 9
wha@atmel
Active Participant

Re: clipboard

Message contains an attachment
hi Alfred,

find attached an example with pict ring.
I have opened jpeg-pictures I took during the flood last week in Dresden/Germany - in this case with photoshop.
Then copy this picture as if you want to paste it somewhere. Then go to LabVIEW - on your frontpanel should be placed a Pict Ring. Right click on this Pict Ring and paste your picture with "Import picture". If you want to add more pic's look to the menue around this action.

Regards
wha
Alfred76
Member

Re: clipboard

thank you, but i do not just want to watch the picture, i also want to
process ist. maybe i did not explain what i am searching for exactly. i want
to analyze the actual screen output from a program, this means i need a
pixmap-array from the actual windows screen. at the time i solve the problem
by using a captureprogram, wich saves the actual screen to a bmp-file, then
i read it again in labview. this solution is very slow and instable and has
high disk load wich is not necessary. i want to grab the screen directly of
simulate a pressing print key (works) and read from the clipboard (my
problem).
in nidevzone i found a example for labwindows, that allows to read a image
from clipboard into an array, and there is a IMAQ ClipboardToImage function
in the lab
view help, but i cant find the function.
thx for help
"wha@atmel" schrieb im Newsbeitrag
news:506500000005000000AD9A0000-1027480788000@exchange.ni.com...
> hi Alfred,
>
> find attached an example with pict ring.
> I have opened jpeg-pictures I took during the flood last week in
> Dresden/Germany - in this case with photoshop.
> Then copy this picture as if you want to paste it somewhere. Then go
> to LabVIEW - on your frontpanel should be placed a Pict Ring. Right
> click on this Pict Ring and paste your picture with "Import picture".
> If you want to add more pic's look to the menue around this action.
>
> Regards
> wha
Jianmin
Member

Re: clipboard

This is also what I need. Can anyone give us a sample code? Thanks. -Jianmin
zou
Trusted Enthusiast
Trusted Enthusiast

Re: clipboard

Message contains a hyperlink

Try Image Toolbox at:

    http://www.geocities.com/gzou999/imgtool.htm

George Zou
Jianmin
Member

Re: clipboard

I have LabVIEW 7 and there are no block diagrams so it doesn't work for me. Thanks. -Jianmin
Highlighted
zou
Trusted Enthusiast
Trusted Enthusiast

Re: clipboard

Sorry, demo only available in 6.1 for now.
George Zou
zou
Trusted Enthusiast
Trusted Enthusiast

Re: clipboard

Message contains a hyperlink
Import Bitmap demo is available for LV7.1 at:
George Zou
TIJU
Member

Re: clipboard

How can i remove the Clipboard from the VI Hierarchy..??

the cilp boarding is giving the path to the subvis..

So the sub Vi is getting  its Access  slowly , When Called in  main VI..


regards
TIJU
Regards

Tiju Thomas
tst
Knight of NI Knight of NI
Knight of NI

Re: clipboard

The clipboard appears in the hierarchy if there are any VIs in it. You can remove the VIs by copying something else into the clipboard (like a constant).

Even so, this should not cause the VI to run slowly.

If you still have a question, you should start a new thread and describe your problem accurately, preferably with some code.


___________________
Try to take over the world!