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
 Export image - white window

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
ohm Posted - 05/13/2006 : 07:53:28 AM
Origin Version (Select Help-->About Origin): 7.5
Operating System: Windows XP
Hello iam using this script for for export of conture plot window in to the BMP but if i export the window result is just blank screen can you please help me with this?



mp.LT_execute("Image.FileName$ = "+OUT_dir+"testik.BMP;");

mp.LT_execute("Image.showOptions = false;");

mp.LT_execute("Image.Export.PageDPI( BMP, 96, 24, 0 );");



mp.Detach();
2   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 05/13/2006 : 6:17:20 PM
Hi,

What is mp in your code? Are you pointing to the matrix page instead of the graph page containing the contour plot? Need to export the graph page.

You can use image() function in Origin C, such as in the "Export all graphs to BMP" example on this page:
http://www.originlab.com/index.aspx?s=9&lm=71&pid=268

Note also that LabTalk objects can be access in Origin C with code such as:

using image = LabTalk.image;
image.filename$ = strFileName;
image.showoptions = 0;
//etc

Easwar
OriginLab

Mike Buess Posted - 05/13/2006 : 12:50:20 PM
Your code works fine in Origin 7.0 SR4 and 7.5 SR6 so it should also work in your version. Are you sure that mp is attached to a valid graph window? (Can be either layer or page.)

Note however that LabTalk does not recognize true and false as 1 and 0. Image.ShowOptions = false is interpreted as Image.ShowOptions = 0/0 and the property will default to 0. Likewise, Image.ShowOptions = true will also default to 0.

Mike Buess
Origin WebRing Member

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