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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Image Export Options

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Bob Posted - 02/13/2002 : 9:33:49 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
Bob Posted - 02/18/2002 : 6:02:37 PM
Cool Craig, Thanks.

CStorey Posted - 02/14/2002 : 1:09:54 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000