imageFilterKernel

Defines a matrix that describes how a specified pixel and its surrounding pixels affect the value computed for the pixel's position in the output image of a filtering operation.

The X origin and Y origin indicate the kernel matrix element that corresponds to the pixel position for which an output value is being computed.

imageFilterKernel(width, height, data) → returns any

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

width numeric
Required

height numeric
Required

data any
Required

Examples
Sample code invoking the imageFilterKernel function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub