
-----------------------------------
Randy
Wed Jun 16, 2010 9:49 pm

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.

http://i49.tinypic.com/15gfkh0.png

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]

-----------------------------------
TheGuardian001
Wed Jun 16, 2010 9:58 pm

Re: Pic.Draw Help
-----------------------------------
[tdoc]Font.Draw[/tdoc] will draw text with no background

-----------------------------------
copthesaint
Thu Jun 17, 2010 11:11 am

Re: Pic.Draw Help
-----------------------------------
because I`m different and just for fun lol

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

-----------------------------------
Cezna
Thu Jun 17, 2010 2:19 pm

RE:Pic.Draw Help
-----------------------------------
The white bar is due to the fact that you are using put.
Instead, use:

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.

