Code: Select all
OpenWindow(1, 100, 100, 400, 400, "")
CreateImage(1, 400, 400)
For mc = 1 To 100
StartDrawing(ImageOutput(1))
DrawText(100,100, Str(mc))
StopDrawing()
StartDrawing(WindowOutput(1))
DrawImage(ImageID(1), 0, 0)
StopDrawing()
Next
Repeat
event = WaitWindowEvent()
Until event = #PB_Event_CloseWindow
FreeImage(1)
CloseWindow(1)
