Chapter Contents

Previous

Next
Image Data Model: _crop

Image Data Model: _crop



Selects a portion of the image


Syntax
Details
Example

Syntax

CALL SEND (object-id, '_crop', start-x, start-y, end-x, end-y);

Argument Type Description
start-x
N the X coordinate of the start point for the crop
start-y
N the Y coordinate of the start point for the crop
end-x
N the X coordinate of the end point for the crop
end-y
N the Y coordinate of the end point for the crop


Details

The start-x, start-y, end-x, and end-y points use units of pixels and are included in the new image. The top left corner of the image is (0,0).


Example

This example crops a 100×100 image from the bottom corner of a 400×400 image:

call send(imgdat_id,'_crop',300, 300, 399,
          399);


Chapter Contents

Previous

Next

Top of Page

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