Commands Used with the IMGCTRL, IMGOP and PICFILL Functions |
Sets the size of the Image window
rc=IMGCTRL(task-id, 'WSIZE', width, height <, x,
y>);
|
-
width
-
is the width of the window (in pixels).
Type: Numeric
-
height
-
is the height of the window (in pixels).
Type: Numeric
-
x
-
is the X coordinate of the top left corner.
Type: Numeric
-
y
-
is the Y coordinate of the top left corner.
Type: Numeric
WSIZE sets the size of the Image window.
Optionally, it positions the window at x and y. Some window managers might not support
positioning.
Make the Image window match the size of the image that
is being displayed:
main:
height=0;
width=0;
rc=imgop(task-id,'READ',path);
rc=imgop(task-id,'QUERYN','WIDTH',iwidth);
rc=imgop(task-id,'QUERYN','HEIGHT',iheight);
rc=imgctrl(task-id,'WSIZE',iwidth,iheight);
rc=imgop(task-id,'PASTE',1,1);
return;
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.