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

Username:   Password: 
 RegisterRegister   
 Placing imported Jpg's over Draw.Fills...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mmcdough




PostPosted: Mon May 28, 2007 5:58 pm   Post subject: Placing imported Jpg's over Draw.Fills...

Is this possible? I'm making a paint program. In MS word I made a picture of three circles, all different sizes. I want to use them to change the size of the paintbrush when you click on them. But...I want to use whatdotcolor. So is it ipossible if I put fullovals of random colors underneath, so when you run the program you see the black circles I made in paint? Right now I can't even get the MS paint circles to overlap the turing circles.
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: Mon May 28, 2007 6:02 pm   Post subject: RE:Placing imported Jpg\'s over Draw.Fills...

Why wouldn't you just use Draw.FillOval() instead? It makes things far less complicated, and then it's infinitely easier to control the colour. Perhaps if we could see some code I might be able to better understand what you're asking.
mmcdough




PostPosted: Mon May 28, 2007 6:09 pm   Post subject: Re: Placing imported Jpg's over Draw.Fills...

Because I want all three circles to be black. I tried just using Fill.Ovals of different shades of black, but turing doesn't recognize the different shades.
Clayton




PostPosted: Mon May 28, 2007 6:16 pm   Post subject: RE:Placing imported Jpg\'s over Draw.Fills...

Okay, I think I mis-read your problem. Why not just use math instead of using View.WhatDotColor() instead? The math is infinitely easier, and doesn't limit you to a color.
mmcdough




PostPosted: Mon May 28, 2007 6:27 pm   Post subject: Re: Placing imported Jpg's over Draw.Fills...

What do you mean by math? Like putting in the coordinates of the circles?
Clayton




PostPosted: Mon May 28, 2007 6:29 pm   Post subject: RE:Placing imported Jpg\'s over Draw.Fills...

In the most basic terms, I guess so. Basically, you know the coordinates of the center of the circle(s), and you know the radii of those circles, so you can check around the circle and see if the mouse is within that area. You will also have to come up with a reliable way to check and see if the mouse is being clicked or not.
mmcdough




PostPosted: Mon May 28, 2007 6:31 pm   Post subject: Re: Placing imported Jpg's over Draw.Fills...

alright, thanks.
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  [ 7 Posts ]
Jump to:   


Style:  
Search: