The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 saving a serie of 2D maps into BMP files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mdavid

France
Posts

Posted - 12/17/2004 :  05:22:24 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin):5
Operating System:windows 2000

I generated a serie of 2D maps (from graph1 to graph100) and
I would like to save them automatically into BMP files.
The next loop doesn't work:
for (ii=3;ii<103;ii++) {
save -bs graph$(ii) graph$(ii).bmp 400 400;
};
Does anybody know how to do ?
David.

greg

USA
1380 Posts

Posted - 12/17/2004 :  10:15:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Your script should be working. Of course, who knows where these files will end up because you haven't said where to put them so Windows will decide on it's own. Is that why you say it's not working - because you can't find them?

Try adding path information ..
for (ii=3;ii<103;ii++) {
save -bs graph$(ii) "F:\My Documents\My Pictures\graph$(ii).bmp" 400 400;
};

Of course this script is limited to bitmaps. For other formats, you should use the image.export object methods.

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000