Computer Science Canada

Make Text disappear

Author:  Daso [ Sun May 18, 2003 4:41 pm ]
Post subject:  Make Text disappear

I'm trying to make a line of text disappear, I've got a picture in the background and re-drawing the background is out of the question...

is there anyway I can just take away the line of text that I drew without havinf to redraw the background ?

code example:
Font.Draw ("This is a line of text", 25, 75, InfoFont, black)


background is drawn like so:
Pic.Draw (background, 0, 0, picCopy)

Author:  Tony [ Sun May 18, 2003 4:47 pm ]
Post subject: 

if the whole background picture is too large to redraw, you can save a part that will have text on top and redraw just that small portion.

var picID:int := Pic.New(x1,y1,x2,y2)

Author:  Andy [ Mon May 19, 2003 6:05 pm ]
Post subject: 

or you can just have the back ground in a procedure and just rerun the procedure

proc background
%the drawings here
end background

and just type background whenever you need to redraw it


: