Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Make Text disappear
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Daso




PostPosted: 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)
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun May 18, 2003 4:47 pm   Post subject: (No 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)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Andy




PostPosted: Mon May 19, 2003 6:05 pm   Post subject: (No 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: