Computer Science Canada HELP with Paint Outline - URGENT!! |
Author: | mcv [ Sat Apr 29, 2006 9:47 pm ] | ||
Post subject: | HELP with Paint Outline - URGENT!! | ||
I made a paint outline but everytime I run it it the screen flickers. For the pics, I have them saved in the attachment. Can you tell me how to make it so that the screen does not flicker and my green highlight/pics still work and show on the boxes? I need this for Monday. Thanks PS: Anyone know why the save/load boxes are not displayed and how to use them in order to allow the user to choose a save name and save the picture with a bmp extension?
|
Author: | do_pete [ Sat Apr 29, 2006 10:00 pm ] |
Post subject: | |
You need to learn how to use View.Update. Check out the Turing Walkthrough for a tutorial. |
Author: | jamonathin [ Sat Apr 29, 2006 10:21 pm ] | ||
Post subject: | Re: HELP with Paint Outline - URGENT!! | ||
mcv wrote: PS: Anyone know why the save/load boxes are not displayed and how to use them in order to allow the user to choose a save name and save the picture with a bmp extension? By taking a look at just the coding (i dont have winRAR), i can see one reason why your program flickers so much, your CLS is halfway through your program! How do you expect to see everything if your CLS is in the Display Colors section? put it at the top, and use only 1 cls and 1 View.Update. Since there aren't any delays in your main loop (neverminding your if statements), its no wonder you can't see the white boxes when your program is flashing at warp speed with no View.Update. But note: do NOT use delay's when u get in View.Update - it'll just slow stuff down. to save a picture is really easy - just take a look at this code and incorporate it into your program:
|
Author: | do_pete [ Sat Apr 29, 2006 10:51 pm ] |
Post subject: | |
Use Pic.ScreenSave instead. Random note: this is the 111,111th post on this site |
Author: | mcv [ Sun Apr 30, 2006 9:35 am ] | ||
Post subject: | Still doesn't work.. | ||
Anyone know how to load a file? I wrote a new code with procedures but the boxes are all still out of place.
|
Author: | jamonathin [ Sun Apr 30, 2006 10:06 am ] |
Post subject: | Re: Still doesn't work.. |
mcv wrote: Anyone know how to load a file? I wrote a new code with procedures but the boxes are all still out of place.
Well first of all, you know how to load a file. You have already shown that you know how to use Pic.FileNew and Pic.Draw - there is no difference. Now for your boxes, one is drawn at: (600, 300, 700, 350, white) - where the maximun x-value on the screen is 639. (you are going to 700) And your second one is being drawn after the get statement, so that is why you don't see it right away - im not shure where you want it however. You need to double check your (x1, y1, x2, y2) values in your boxes. |
Author: | mcv [ Sun Apr 30, 2006 10:15 am ] |
Post subject: | |
Yes. But, why don't all my boxes show up in the lay out like the main drawing box, colour boxes, text, etc.. |
Author: | mcv [ Sun Apr 30, 2006 11:25 am ] |
Post subject: | |
Nevermind my last message. I decided to go along with a standard white background. |