06-08-2007 02:46 PM
06-11-2007 11:33 AM
Hi Mike,
I am missing Rotate Picture Control.vi and Mask Color.vi, so I am not sure exactly how you are displaying the jpg. I’m assuming that you would like to shift the position of the whole picture. If so, please take a look at the following thread.
http://forums.ni.com/ni/board/message?board.id=170&message.id=72182&requireLogin=False
You will find an example that should help you out. I hope this answer your question. If I can do anything else to help, please post back.
Regards,
Elizabeth S.
Applications Engineer
National Instruments
06-11-2007 03:00 PM
06-12-2007 01:54 PM
Hi Mike,
I was able to edit your VI to move the object up and down in the picture frame. I added 2 two controls; one for the change in x position and one for the change in y position. You can edit the formula node in Rotate 24bit.vi to reflect the changes in position:
x2 = x + delta_x;
y2= y + delta_y;
You will need to add a new input by right-clicking on the border of the formula node. Be sure that you replace all angle rotation controls with a delta_x control and a delta_y control. Then change the connector pane for the Rotate Picture Control.vi to incorporate the extra control.
You may want to divide the delta value by some constant. I noticed a large change in position when shifting x or y by only 1.
Elizabeth S.
Applications Engineer
National Instruments
06-14-2007 03:01 PM