Chapter Contents

Previous

Next
WSIZE

WSIZE



Sets the size of the Image window


Syntax
Details
Example

Syntax

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


Details

WSIZE sets the size of the Image window. Optionally, it positions the window at x and y. Some window managers might not support positioning.


Example

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;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.