Chapter Contents |
Previous |
Next |
IMGINIT |
Category: | Image |
Syntax | |
Details | |
Example |
Syntax |
task-id=IMGINIT(<list-id>,<option>); |
Type: Numeric
A value of zero means that no list is passed.
Type: Numeric or List
'NODISPLAY'
'TOPWINDOW'
Type: Character
Details |
The IMGINIT function initializes the image environment. This usually means opening the Image window, but you must use this function even if you plan to manipulate images without displaying them.
When you initialize the Image window, the list that you pass to IMGINIT can include commands to initialize the window size.
Example |
Initialize the Image window size:
width=700; height=520; xpos=0; ypos=0; cmdid=makelist(); allcmdid=makelist(); rc=insertc(cmdid,'WSIZE',-1); rc=insertn(cmdid,width,-1); rc=insertn(cmdid,height,-1); rc=insertn(cmdid,xpos,-1); rc=insertn(cmdid,ypos,-1); rc=insertl(allcmdid,cmdid,-1); taskid=imginit(allcmdid,'TOPWINDOW');
Start the image task without displaying the Image window:
taskid=imginit(allcmdid,'nodisplay');
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.