CNS Image

Import, edit, and export Images in the FileMaker environment

<- Back to CNS Image function list

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.

  • Layer

    The 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

Code:

CNSImage_GetLayer( Image ; 10 )

Result:

Returns layer 10 of the image in the "Image" field.

Example 2

Code:

CNSImage_GetLayer( PDF ; 56 ; True )

Result:

Returns page 56 of the PDF in the "PDF" field at 300 DPI.