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

Username:   Password: 
 RegisterRegister   
 Pic less than pixel move
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Masta_911




PostPosted: Tue Jan 09, 2007 7:05 pm   Post subject: Pic less than pixel move

i just wanted to know if there was a way to move a pic less than a pixel to the right, left, bottom or top...like 0.87 or sum other number
Sponsor
Sponsor
Sponsor
sponsor
Masta_911




PostPosted: Tue Jan 09, 2007 7:48 pm   Post subject: RE:Pic less than pixel move

Hey does no1 know if u can move a pic less then a pixel maybe half a pixel or sumthing

NO1 knowsssss
Clayton




PostPosted: Tue Jan 09, 2007 7:49 pm   Post subject: Re: Pic less than pixel move

First of all, there is an edit button now, use it.

Second, don't beg, it makes people less likely to help you.

Third, use a real variable to hold the x and y, and round them when it comes to drawing. This is the closest you can come to what you want to do.
Masta_911




PostPosted: Tue Jan 09, 2007 8:44 pm   Post subject: RE:Pic less than pixel move

could sum1 give me the link to an example where a round command is used or just show me how to do it
Wolf_Destiny




PostPosted: Tue Jan 09, 2007 8:50 pm   Post subject: Re: Pic less than pixel move

Go to Turing, type in the word "round" no quotes, and press F9.

~Wolf_Destiny
Woot! V3!
Cervantes




PostPosted: Tue Jan 09, 2007 8:53 pm   Post subject: Re: Pic less than pixel move

It's very simple:

code:

var x, y : real
x := 10.5
y := 9.87

Pic.Draw (my_pic, round (x), round (y), draw_mode)

assuming my_pic and draw_mode are variables for the picture you want to draw and the drawing mode (picCopy, picMerge, picUnderMerge, etc).
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: