Page 1 of 1

Posted: Sat Jun 22, 2002 12:21 pm
by BackupUser
Restored from previous forum. Originally posted by Branston.

I'm using the OpenWindow() command to create a window.

I want to draw some graphics (consisting of individual pixels) into this window but I'm not sure how to do this. I would also like to 'Print'/Write some text into this same window. What are the correct commands to do this?

My apologies in advance if these are very obvious/silly questions but I am very new to PB. :)

(I know I can Print directly into an Openconsole() window)

Posted: Sat Jun 22, 2002 1:27 pm
by BackupUser
Restored from previous forum. Originally posted by Branston.

Oops! I just worked it out. For the plotting part I do this..

StartDrawing(WindowOutput())
Plot(10, 10 ,RGB(0,0,0))
StopDrawing()

.. and for the text part, I do this

DrawText("Some text")