Computer Science Canada

chr graphics vs. pixel graphics

Author:  rollerdude [ Sun Feb 13, 2005 2:07 pm ]
Post subject:  chr graphics vs. pixel graphics

well... not really versus

is there an algorythm that i can type so that if i give the a pixel graphic co-ordinate, it will draw a chacter there(in that general location) rather then way off the screen?

ex/ pixel position l graphic position
1,1(b-left corner) l appear bottom left corner rather than top left


(pixel pos) figure 1-1
l
l
l
l
la___________

(chr pos) firgure 1-2
la
l
l
l
l____________

i want to tell the computer to draw at 1,1
and appear as in figure 1-1
not figure 1-2


figure 2-1
(pos 50,50)
l a
l
l
l
l_____________

firgure 2-2
(pos 50,50)
l
l
l
l
l_____________ a

cause you know how (1,1) versus (5,1)
jumps more than just 5 pixels for location 2

sort of under stand?

Author:  Bacchus [ Sun Feb 13, 2005 2:52 pm ]
Post subject: 

so you want to put text at a certain location? locatexy()

Author:  ssr [ Sun Feb 13, 2005 6:13 pm ]
Post subject: 

do u mean like if the x y entered are bigger than the screen then use locatexy. 8)


: