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

Username:   Password: 
 RegisterRegister   
 Text.Locate by Pixels?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Daavii




PostPosted: Fri Jan 16, 2009 9:24 am   Post subject: Text.Locate by Pixels?

Any possible way to locate text using pixels! PLEASE????
Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: Fri Jan 16, 2009 10:02 am   Post subject: RE:Text.Locate by Pixels?

Not using Text.Locate, which is only for rows/columns. If you want pixel-aligned programmatic text, you'll need to look into the Font package. The Font package operates similarly to the Pic package: you create a font with Font.New or similar, which returns an id number; subsequently, you can use that Font to draw whatever text wherever you want.
Euphoracle




PostPosted: Fri Jan 16, 2009 4:09 pm   Post subject: RE:Text.Locate by Pixels?

Turing:
locatexy(24, 67) % Using this
put "Delicious cake!"
DanielG




PostPosted: Fri Jan 16, 2009 6:58 pm   Post subject: RE:Text.Locate by Pixels?

the above works, however, it doesn't point to the exact one, it rounds and places in the nearest row and column. if you really want to get it to be perfect based on x and y coordinates then you should probably be using turing "font" (look it up F10)
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  [ 4 Posts ]
Jump to:   


Style:  
Search: