Product Logo

CNS Image

Import, edit, and export Images in the FileMaker environment

Functions

CNSImage_Filter

NameCNSImage_Filter
Description

With this function, you can apply a filter to an image. CNS Image currently has filters available to Blur, Contrast, Edge, Emboss, Modulate, and Sharpen. Look for more filters to be added in the future.

Return TypeContainer
FormatCNSImage_Filter ( Image ; Type ; ... )
Required Parameters
Image

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

Type

The Filter Type you want to apply.

Optional Parameters
...

Any extra parameters the Filter Type needs.

Blur
CNSImage_Filter( Image ; “Blur” ; Radius ; Amount )

Contrast
CNSImage_Filter( Image ; “Contrast” ; Sharpen )

Edge
CNSImage_Filter( Image ; “Edge” ; Radius )

Emboss
CNSImage_Filter( Image ; “Emboss” ; Radius ; Amount )

Modulate
CNSImage_Filter( Image ; “Modulate” ; Brightness ; Saturation ; Hue )

Sharpen
CNSImage_Filter( Image ; “Sharpen” ; Radius ; Amount )

Examples
Example 1

Blurs the image in the Image field.

CNSImage_Filter( Image ; "Blur" ; 25 ; 10 )
Example 2

Contrasts the image in the Image field.

CNSImage_Filter( Image ; "Contrast" ; "Yes" )
Example 3

Applies the Edge filter to the image in the Image field.

CNSImage_Filter( Image ; "Edge" ; 2 )
Example 4

Embosses the image in the Image field.

CNSImage_Filter( Image ; "Emboss" ; 1 ; 2 )
Example 5

Rotates the Hue of the image by 5 degrees while keeping the Brightness and Saturation the same.

CNSImage_Filter( Image ; "Modulate" ; 100 ; 100 ; 5 )
Example 6

Sharpens the image in the Image field.

CNSImage_Filter( Image ; "Sharpen" ; 60 ; 30 )
Example 7

Brightens the image by 150%

CNSImage_Filter( Image ; "Modulate" ; 150 )