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

tinkusch

Germany
94 Posts

Posted - 03/20/2002 :  06:58:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

CStorey

Canada
137 Posts

Posted - 03/20/2002 :  1:13:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 03/20/2002 :  7:13:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


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