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
 Image Export Options
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Bob

USA
14 Posts

Posted - 02/13/2002 :  9:33:49 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
If I want to export a bitmap using:
image.export(%a,bmp)

from in labtalk can I automatically change the color depth like I can manually by doing this:
Click File -> Export Page -> Show Export Options checked -> Save -> Color Depth= 256 -> DPI = 150 -> OK

Or is there an alternate way? I'm using Origin 6.0 SR4. Thanks
--Bob

CStorey

Canada
137 Posts

Posted - 02/14/2002 :  1:09:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Bob,

The LabTalk commands you are looking for in 6.x are:

image.filename$="C:\....\yourfilename.BMP";
image.exportPixel(BMP,pic_width,pic_height,bits,0); //Origin 6.0
image.export.PagePixel(BMP,pic_width,pic_height,bits,0); //Origin 6.1

The final 0 is for % compression which is not supported for BMPs. (I'm not sure whether it was supported for any format in v6.0)

You shouldn't have problems with BMPs.
You will have to play with the width/height/colour depth quite a bit to get really good images with other formats.
Good luck.

Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring

Edited by - CStorey on 02/14/2002 18:18:02

Edited by - CStorey on 02/14/2002 18:19:09
Go to Top of Page

Bob

USA
14 Posts

Posted - 02/18/2002 :  6:02:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Cool Craig, Thanks.

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