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

Username:   Password: 
 RegisterRegister   
 Can you save a picture that is created with turing to a bmp picture file?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
livingheaven




PostPosted: Sat Jun 12, 2010 6:33 pm   Post subject: Can you save a picture that is created with turing to a bmp picture file?

Im turing to make a mini microsoft powerpoint with turing, currently im having trouble with the part where you save the slide you just created, i coundnt reload the picture.
when i save the picture, it does not show up on the bmp picture file...

Can anyone help me with this ?
Thx for the help
Sponsor
Sponsor
Sponsor
sponsor
Zren




PostPosted: Sat Jun 12, 2010 7:54 pm   Post subject: RE:Can you save a picture that is created with turing to a bmp picture file?

Pic.ScreenSave(x1,y1,x2,y2, filename)
Pic.Save(picID, filename)

Turing:

for i : 1 .. 100
    Draw.FillOval (Rand.Int (0, maxx), Rand.Int (0, maxy), Rand.Int (3, 40), Rand.Int (3, 40), Rand.Int (0, maxcolour))
end for
Pic.ScreenSave (0, 0, maxx, maxy, "File.bmp")
cls
var pic : int := Pic.FileNew ("File.bmp")
Pic.Draw (pic, 0, 0, picCopy)


That's working code. Not much I can access from what you said. Does it make the file with nothing in it? or not make the file at all? or is it just a white picture?
livingheaven




PostPosted: Sat Jun 12, 2010 7:57 pm   Post subject: RE:Can you save a picture that is created with turing to a bmp picture file?

making a file and saving information in it in this case the informaiton is a picture
livingheaven




PostPosted: Sat Jun 12, 2010 8:00 pm   Post subject: RE:Can you save a picture that is created with turing to a bmp picture file?

yes~!!!
it works
LOL
thx
Cezna




PostPosted: Sun Jun 13, 2010 9:01 am   Post subject: RE:Can you save a picture that is created with turing to a bmp picture file?

You can also click the 'Save' button on the buttonbar (you will have to have "buttonbar" on to do this, but it is on by default).
This will allow you to save everything that is currently displayed in the Turing run window as an image.

This is just an automatic way of encompassing the entire screen as an image, which is an easier but often less useful way of doing what Zren described.
livingheaven




PostPosted: Sun Jun 13, 2010 11:17 am   Post subject: RE:Can you save a picture that is created with turing to a bmp picture file?

thx
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  [ 6 Posts ]
Jump to:   


Style:  
Search: