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

Username:   Password: 
 RegisterRegister   
 Background Picture
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Hyugun




PostPosted: Thu May 08, 2008 11:16 pm   Post subject: Background Picture

I'm trying to put a background image inside my program, how do I do that? Basically like a background image in html which you can write text on the window.
Sponsor
Sponsor
Sponsor
sponsor
lordroba




PostPosted: Fri May 09, 2008 12:23 am   Post subject: Re: Background Picture

if you mean just basically having a picture set in the back then just go like this...

Turing:


var picID : int
var x, y : int
picID := Pic.FileNew ("background.jpg")
x := 0
y := 0
Pic.Draw (picID, x, y, picCopy)


replace background.jpg with whatever name and extension your picture is.
Tony




PostPosted: Fri May 09, 2008 12:31 am   Post subject: RE:Background Picture

if you then want to write text on a transparent background (so to see the image behind the text), you'd need to use Font.Draw()
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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: