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

Username:   Password: 
 RegisterRegister   
 save a picture
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
hey_joe42




PostPosted: Wed Apr 09, 2003 9:17 am   Post subject: save a picture

yeah i think my title is somewhat misleading but heres my problem
k i've drawn a picture (monopoly board) using turign (ex, drawfillbox, drawbox,drawline, etc...) k but i have to have the file keep reappearing how can i save this picture as one picture so that it doesn't go through each step to draw it, it saves it in the memory and just instantly draws it or something you know what i mean like mabye store it in a variable like, board and then when i do Pic.Draw(board,0,0,picMerge) it display the entire board
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Wed Apr 09, 2003 11:22 am   Post subject: (No subject)

some export of Pic.

Pic.New or something. I'm not sure. You might want to use Pic2Code program available in submitions. Very useful
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Blade




PostPosted: Wed Apr 09, 2003 12:02 pm   Post subject: (No subject)

be kinda like this
code:

%draw the pic on the screen, lets say you got a happy
%face guy drawn on the page
var newimage:int %your image
newimage:=Pic.New(x1,y1,x2,y2) %the coordinates of
%the screen of what you want to save
Pic.FileSave(newimage,"c:/wherever/filename.bmp") %saving the
%file,you can save as other types, but i prefer bmp


i think thats how it works... i'm not sure cuz i dont have a compiler around
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: