Product Logo

CNS Image

Import, edit, and export Images in the FileMaker environment

Functions

CNSImage_Resize

NameCNSImage_Resize
Description

This function allows you to resize an image. You can either resize proportionally by defining only one dimension, or stretch the image by defining both.

Return TypeContainer
FormatCNSImage_Resize ( Image ; Width ; Height )
Required Parameters
Image

A Container field that contains an Image or a Path and File Name to an Image you want to resize.

Width

The new Width for the Image.

Height

The new Height for the Image.

Examples
Example 1

Proportionally resizes the image in the "Image" field to have a width of 200 pixels.

CNSImage_Resize( Image; 200 ; "")
Example 2

Proportionally resizes the image in the "Image" field to have a height of 100 pixels.

CNSImage_Resize( Image; "" ; 100)
Example 3

Stretches image in the "Image" field to have a width of 200 pixels and a height of 100 pixels.

CNSImage_Resize( Image; 200 ; 100)