Computer Science Canada How come Boundaries Wiht Draw.Pic is different then drawoval |
| Author: | windowsall [ Tue Apr 05, 2005 5:43 pm ] |
| Post subject: | How come Boundaries Wiht Draw.Pic is different then drawoval |
Alright heres the thing. I was on here earlier asking about boundries for drawoval so it doesnt go off the screen but why cant i do it for Draw.Pic? |
|
| Author: | Cervantes [ Tue Apr 05, 2005 6:23 pm ] | ||||
| Post subject: | |||||
With drawing an oval, you specify the centre (x,y) and the radius (in the x and the y). With a picture, you specify, x1, y1, x2, y2. How you set up your if statements depends on how you are drawing your picture. You could be drawing it like this:
In which case your if statements would be the same as the oval. But, if you do it like this:
then you'll have to change things around. I'm sure you can do that. |
|||||