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

Username:   Password: 
 RegisterRegister   
 How come Boundaries Wiht Draw.Pic is different then drawoval
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
windowsall




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Tue Apr 05, 2005 6:23 pm   Post subject: (No 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:
code:

Pic.Draw (pic, x - width / 2, y - height / 2, x + width / 2, y + height / 2, picSomething)

In which case your if statements would be the same as the oval. But, if you do it like this:
code:

Pic.Draw (pic, x, y, x + width, y + height, picSomething)

then you'll have to change things around. I'm sure you can do that. Wink
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  [ 2 Posts ]
Jump to:   


Style:  
Search: