BBC BASIC for Windows
Programming >> Graphics and Games >> Fill http://bb4w.conforums.com/index.cgi?board=graphics&action=display&num=1280313720 Fill
Post by JB91 on Jul 28th, 2010, 10:42am
Is it possible to fill in the background without clearing the screen?
And also how do you print the graphics you drew on the printer? When I used *HARDCOPY, it came out completely black.
Josh.
Re: Fill
Post by Richard Russell on Jul 29th, 2010, 5:37pm
Is it possible to fill in the background without clearing the screen?
Check out the FILL statement, and the related PLOT commands (which give you more options).
Quote:
And also how do you print the graphics you drew on the printer? When I used *HARDCOPY, it came out completely black.
I'm not aware of any problems with *HARDCOPY. Are you specifying any parameters? If so, check that they are correct. Try (as a test) using *HARDCOPY without any parameters. Note that *HARDCOPY prints the contents of the main output window (@hwnd%); you cannot use it to print any other types of window (edit controls, dialogue boxes etc.).
Richard. Re: Fill
Post by JB91 on Jul 31st, 2010, 07:43am
The *HARDCOPY worked with no parameters, but when I used the fill statement in my drawing program, it filled in what I drew and not the background. Any suggestions?
Josh.
Re: Fill
Post by Richard Russell on Jul 31st, 2010, 12:01pm
The *HARDCOPY worked with no parameters, but when I used the fill statement in my drawing program, it filled in what I drew and not the background. Any suggestions?
Read how fill works and select the correct PLOT code and GCOL code so that it fills the colour(s) you want it to fill but not the colours you don't want it to fill. The information you need is in the manual .