LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Jpeg or png format to .cur format conversion ?

Solved!
Go to solution

Hello every one 

 

My application is to load icons over the picture in jpg or png or bmp formats that supported by labviw

 

After loding any icons over the 2d picture . If i want to move the icon from one point to other point , I want to make the icon as the cursor image .

 

So in this process i need to convert an jpg or png or bmp image format into .cur image format through labview . 

 

Thank you.

0 Kudos
Message 1 of 2
(3,363 Views)
Solution
Accepted by topic author Nagaa

LabVIEW does not directly support converting between image formats, and does not support the cursor format, as an image format, at all (it does support it for cursors).  However, you can still do what you would like to do, but you will have to do it in a different manner.  Here are a couple of possibilities:

 

  1. Do everything in a single picture control.  Use the mouse events (move, up, down, ...) to control what icon gets picked up and where it goes.  You can move the icon across a picture control programmatically.
  2. Use two picture controls.  The first contains your full picture.  When you pick up an icon, remove it from the first picture control and transfer it to the second, which is transparent and lies over the first.  When you move the mouse, move the second picture control programmatically using mouse events.

There are a plethora of variations on these basic ideas.  All will require some playing around to get the events to work correctly for you, but you should be able to do it.  Good luck.  Let us know if you need more help.

0 Kudos
Message 2 of 2
(3,347 Views)