Chapter Contents

Previous

Next
Image Data Model: _write

Image Data Model: _write



Writes an image to an external file


Syntax
Details
Example

Syntax

CALL SEND (object-id, '_write', image-path, attributes);

Argument Type Description
image-path
C the pathname of the file to be written
attributes
C the attributes specific to the file type.


Details

You can specify the file directly (using its physical filename path), or by using the information returned on a previous LNAMEMK function call. The LNAMEMK function allows creation of a single character variable that contains location information about the image (even if it resides in a SAS catalog) as well as other image attributes.


Example

This example writes an image to a SAS catalog. The LNAMEMK function stores the FORMAT= attribute as part of the path and assigns the path to the variable FULLPATH.

fullpath=lnamemk(5,'sashelp.imagapp.gfkids',
                'format=cat');
call send(imgdat_id,'_write',fullpath);

This example writes an image to an external file:

call send(imgdat_id,'_write','/usr/images
          /color/sign.tif','format=tiff');


Chapter Contents

Previous

Next

Top of Page

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