Thang Nguyen Posted September 28, 2015 Report Share Posted September 28, 2015 (edited) Hi, In current picture control, the origin start at top left corner and it's positive direction go down to the bottom. I would like to use picture control to draw map for my robot project, but I would like to display as a normal coordinator system which mean vertical positive direction is go up and origin start at bottom left corner. I am trying to shift the origin and swap all y value. I wonder if there is better way than this. Regards, Thang Nguyen Edited September 28, 2015 by Thang Nguyen Quote Link to comment
Chris_Collier Posted September 28, 2015 Report Share Posted September 28, 2015 My first attempt at this would be to have an accessor which does the translation between coordinate systems - anything talking to the accessor will use the bottom-left origin coordinates, but the accessor will output the image as LabVIEW would read it (with the upper-left origin). Quote Link to comment
Yair Posted September 29, 2015 Report Share Posted September 29, 2015 Changing the Y values seems easy enough to me (just do PicHeight-Y), but if you want another option, you could try using an XY graph instead of the picture control and just set the scales to match what you want. If you want to have an actual image, you can use the graph's picture property (I think it's called plot images) and set the BG picture. Quote Link to comment
Thang Nguyen Posted September 29, 2015 Author Report Share Posted September 29, 2015 Thanks Chris and Yair. I decided to swap the Y to keep it simple . At the beginning I miscalculated the offset for origin, but I have correct value now. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.