Computer Science Canada Code not acting the way i thought i would. |
Author: | Walker [ Fri Apr 02, 2004 11:32 pm ] |
Post subject: | Code not acting the way i thought i would. |
im using picnew to take a screen shot then picdraw to draw it later when i run the code it says illegal pitcure number 0 (picture not created) or something and expample of the code im using is var background: int Draw.FillBox (45, 12, maxx, maxy, 255) % draws random stuff background := Pic.New (1, 1, maxx-1, maxy-1) cls Pic.Draw (0, 0, background,picCopy) this gives me an error, I have checked f10 and so on and according to that this should work. Did i make a mistake, is my computer screwed or does this worjk for everyone else and not me. |
Author: | ModestExtremist [ Fri Apr 02, 2004 11:48 pm ] | ||
Post subject: | |||
Yeah, you're using Pic.New fine. Your problem is you mixed up your parameters for Pic.Draw. You should have:
MacDitty |
Author: | Paul [ Fri Apr 02, 2004 11:49 pm ] | ||||
Post subject: | |||||
lol if you check F10 parameters for Pic.Draw is:
so this should be done
background is the picID, and should come first in Pic.Draw. |
Author: | Walker [ Fri Apr 02, 2004 11:51 pm ] |
Post subject: | |
Thank you both have some bits |
Author: | Paul [ Fri Apr 02, 2004 11:54 pm ] |
Post subject: | |
oops he posted that while I was working up my long post... sorry |