Chapter Contents

Previous

Next
TILE

TILE



Replicates the current image


Syntax
Details
Example

Syntax

rc=IMGOP(task-id, 'TILE', new-width, new-height);

new-width
is the width (in pixels) for the tiled images to fill.

Type: Numeric

new-height
is the height (in pixels) for the tiled images to fill.

Type: Numeric


Details

TILE acts on the currently selected image. The area defined by new-width×new-height is filled beginning in the upper left corner. The current image is placed there. Copies of the current image are added to the right until the row is filled. This process then starts over on the next row until the area defined by new-width×new-height is filled. For example, if the current image is 40×40 and new-width×new-height is 200×140, then the current image is replicated 5 times in width and 3.5 times in height. This technique is useful for creating tiled backdrops.

Note:   Before tiling an image, you must turn off the SCALE option for the image.  [cautionend]


Example

Create a 480×480 tiled image from a 48×48 image:

rc=imgop(task-id,'READ','sashelp.c0c0c.access','format=cat');
rc=imgop(task-id,'TILE',480,480);


Chapter Contents

Previous

Next

Top of Page

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