Computer Science Canada

Pic.Draw Help

Author:  Randy [ Wed Jun 16, 2010 9:49 pm ]
Post subject:  Pic.Draw Help

Whenever I go from my mainscreen procedure to my gamescreen procedure, I want to keep the same image behind. However when the question begins to display, there is a white bar across the entire screen.

Posted Image, might have been reduced in size. Click Image to view fullscreen.

My problem is, how can I get rid of this white line and have the background show neatly with the text and GUI.Buttons in front all nicely?[/img]

Author:  TheGuardian001 [ Wed Jun 16, 2010 9:58 pm ]
Post subject:  Re: Pic.Draw Help

Font.Draw will draw text with no background

Author:  copthesaint [ Thu Jun 17, 2010 11:11 am ]
Post subject:  Re: Pic.Draw Help

because I`m different and just for fun lol

Turing:
View.Set ("graphics,offscreenonly,nobuttonbar")
put "hello world!"
View.Update
delay (1000)
var text : int := Pic.Scale (Pic.New (0, 0, maxx, maxy), maxx * 2, maxy * 2)
loop
    drawfillbox (0, 0, maxx, maxy, red)
    Pic.Draw (text, 0, 0 - maxy, picMerge)
    View.Update
    cls
end loop


:p turing fails
however nice effect if you want it to look distorted? lol

Author:  Cezna [ Thu Jun 17, 2010 2:19 pm ]
Post subject:  RE:Pic.Draw Help

The white bar is due to the fact that you are using put.
Instead, use:
Turing:

var font := Font.New ("Ariel:20:italic")
Font.Draw ("The question", x-coord, y-coord, font, colour)


Of course if you don't want italic, or you want a different size or different text style, just change the Font.New line.


: