Pic less than pixel move
Author |
Message |
Masta_911
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Masta_911
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Masta_911
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Wolf_Destiny
![](http://compsci.ca/v3/uploads/user_avatars/152219065473127fae8c5e.jpg)
|
Posted: 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! |
|
|
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: 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). |
|
|
|
|
![](images/spacer.gif) |
|
|