Name | CNSImage_GetLayer |
---|
Description | This function allows you to extract a layer of an image. You can grab layers of Photoshop images, TIFF images, and pages of PDFs.
|
---|
Return Type | Container |
---|
Format | CNSImage_GetLayer ( Image ; Layer ; HiRes ) |
---|
Required Parameters | Image A Container field that contains an Image or a Path and File Name to an Image you want to Get a Layer from.
LayerThe number of the Layer to get.
|
---|
Optional Parameters | - HiRes
Specify True to render a page at 300 DPI rather than 72 DPI Screen Resolution. (Only available for PDFs)
|
---|
Examples | - Example 1
Returns layer 10 of the image in the "Image" field. CNSImage_GetLayer( Image ; 10 )
- Example 2
Returns page 56 of the PDF in the "PDF" field at 300 DPI. CNSImage_GetLayer( PDF ; 56 ; True )
|
---|