Computer Science Canada How do I put text inside a picture. |
Author: | enchanted_bloom [ Sun Jun 07, 2009 4:31 pm ] | ||
Post subject: | How do I put text inside a picture. | ||
What is it you are trying to achieve? I am trying to put text inside this chart I drew, I don't want to draw the letters, instead I want to write them What is the problem you are having? I'm having a little game at the top and a chart at the bottom, how do I put words inside the rows and columns of the chart? Describe what you have tried to solve this problem <Answer Here> Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
I want to add words in this chart Please specify what version of Turing you are using Turing 4.0.1 |
Author: | ecookman [ Sun Jun 07, 2009 5:03 pm ] |
Post subject: | RE:How do I put text inside a picture. |
Oh thats not too hard, simply use the Locate () function for example locate (5 , 10) put "Located text" for a explanation on how it works use the help (F10) and search locate () |
Author: | tjmoore1993 [ Sun Jun 07, 2009 5:08 pm ] |
Post subject: | RE:How do I put text inside a picture. |
Well, you could use a bunch of commands to fulfill your needs. [syntax=Turing] locatexy (10,20) put "X = 10 and Y = 20" [/syntax] [syntax=Turing] locate (maxrow,50) put "hi" [/syntax] [syntax=Turing] var FONT : int := Font.New ("Tahoma:8") assert FONT > 0 Font.Draw ("STRING HERE!", 480, 22, FONT, black) [/syntax] |
Author: | enchanted_bloom [ Sun Jun 07, 2009 5:08 pm ] |
Post subject: | RE:How do I put text inside a picture. |
how come when I try that it says Row of 50 is greater than maxrox(37) |
Author: | tjmoore1993 [ Sun Jun 07, 2009 5:09 pm ] |
Post subject: | Re: RE:How do I put text inside a picture. |
enchanted_bloom @ Sun Jun 07, 2009 5:08 pm wrote: how come when I try that it says
Row of 50 is greater than maxrox(37) The whole row x col will mess you up so uhmm, when you get that error it means your off screen ![]() |
Author: | ecookman [ Sun Jun 07, 2009 5:09 pm ] |
Post subject: | RE:How do I put text inside a picture. |
the locate function doesn't locate by pixles it does it by rows and columns |
Author: | tjmoore1993 [ Sun Jun 07, 2009 5:10 pm ] | ||||||
Post subject: | RE:How do I put text inside a picture. | ||||||
|
Author: | enchanted_bloom [ Sun Jun 07, 2009 5:12 pm ] |
Post subject: | RE:How do I put text inside a picture. |
I got it Thankyou very much!! |
Author: | ecookman [ Sun Jun 07, 2009 5:13 pm ] |
Post subject: | RE:How do I put text inside a picture. |
no problem ![]() |
Author: | tjmoore1993 [ Sun Jun 07, 2009 5:14 pm ] |
Post subject: | RE:How do I put text inside a picture. |
No problem, if you are unsure of things don't be scared to skim through Turing's Documentation LOCATED HERE |