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 controls

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
tinkusch Posted - 03/20/2002 : 06:58:30 AM
Hi

is there a lab talk command availabel for converting an image to 'Gray and Data', as in the Origin menu? Is there also availabe a labtalk command to toggle between Data Mode and Image Mode?

Stefan
2   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 03/20/2002 : 7:13:14 PM
The following didn't get into documentation, but here they are,

matrix -id;
//check and if needed convert image to gray and data, will prompt Reminder Message box for user to confirm this operation

matrix -in;
//same as -id but will not prompt, this is the command used in the menu command for "Image:Convert to Gray + Data"

matrix -ii;
// check and convert to "View:Image Mode" if needed


unfortunately there is no command to check and View:Data Mode.


CP


CStorey Posted - 03/20/2002 : 1:13:43 PM
Hi Stefan,

Don't think so...but you can use DoMenu() to simulate it.

To get the appropriate Menu control ID just hold down SHIFT+CTRL (with the script window open) while performing the usual steps in Origin. You should see a line that looks like

Menu id=36444

Add this number to the DoMenu(36444) command and it should simulate the action if available.

One word of caution. Menu IDs can change from version to version, or even with SPs so make a note of it in your script and if ever it fails keep in mind that it's a good place to start looking for problems.


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

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