LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display images in FP

Hi,

 

 

      I have a question. Is there any example for displaying the png images on fp wrt every mouse click coordiantes .  if any please post it, Soultions please let me know.

0 Kudos
Message 1 of 6
(3,281 Views)

Are you trying to draw on top of a picture? You can use the Picture Functions palette to do this if you track mouse clicks.

 

I made a VI that draws lines on a picture when the user clicks and drags between two points. I'll attach it here and you can play around with it to see what I did. Essentially, I just store the coordinate of the first click upon Mouse Down event. Then, I use the stored coordinate within the Mouse Up event to draw the line.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 6
(3,273 Views)

Hi,

 

            Thanks a lot. Please post in 2011 LV. 

0 Kudos
Message 3 of 6
(3,260 Views)

Hi,

 

    I'm not trying to draw on a picture. I just want to place a Png on FP, wherever i click the mouse on FP. 

0 Kudos
Message 4 of 6
(3,240 Views)

That's a little tougher because you can't create picture controls on the front panel while the VI is running. The alternative to this would be to have one really large picture control and insert the smaller pictures in to the large picture data. So in the end it would be like overlaying small pictures over the top of a large one.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 5 of 6
(3,236 Views)

Here's the 2011 version of that VI. At least with this, you can see how to use mouse click events with coordinates.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 6 of 6
(3,232 Views)