Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How do you get the x and y coordinates for the top right corner of an imported picture?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
chimerix




PostPosted: 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
Sponsor
sponsor
DemonWasp




PostPosted: 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




PostPosted: 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




PostPosted: 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?

Turing:
put x+Pic.Width(picID), y+Pic.Height(picID)
chimerix




PostPosted: 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




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: