Author |
Message |
chimerix
|
Posted: Mon Nov 30, 2009 9:36 am Post subject: How do you get the x and y coordinates for the top right corner of an imported picture? |
|
|
What is it you are trying to achieve?
How do you get the x and y coordinates for the top right corner of an imported picture?
I tried to use Pic.Width and Pic.Height but i dont exactly know how to use it, because the collision help forum didn't exactly explain what to do.
Please specify what version of Turing you are using
4.1.1 |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
DemonWasp
|
Posted: Mon Nov 30, 2009 10:16 am Post subject: RE:How do you get the x and y coordinates for the top right corner of an imported picture? |
|
|
The bottom left corner of a picture is (x,y). The picture's width and height can be found with Pic.Width(picID) and Pic.Height(picID), respectfully. You should be able to determine from this that the top right corner of the picture will be at ( x+Pic.Width(picID), y+Pic.Height(picID) ). |
|
|
|
|
 |
chimerix
|
Posted: Mon Nov 30, 2009 11:33 am Post subject: RE:How do you get the x and y coordinates for the top right corner of an imported picture? |
|
|
Could you write that out in exact code? Because I have no idea what to write. With everything you need to allow it to work. |
|
|
|
|
 |
apomb

|
Posted: Mon Nov 30, 2009 11:57 am Post subject: RE:How do you get the x and y coordinates for the top right corner of an imported picture? |
|
|
|
|
|
|
|
 |
chimerix
|
Posted: Mon Nov 30, 2009 12:07 pm Post subject: RE:How do you get the x and y coordinates for the top right corner of an imported picture? |
|
|
Tahnk you. |
|
|
|
|
 |
chimerix
|
Posted: Mon Nov 30, 2009 12:13 pm Post subject: RE:How do you get the x and y coordinates for the top right corner of an imported picture? |
|
|
YOU JUST SAVED MY LIFE. |
|
|
|
|
 |
|