convolve
Return an instance of TextureOp which implements a convolution from the source texture to the destination texture. Convolution using a convolution kernel is a spatial operation that computes the output pixel from an input pixel by multiplying the kernel with the surround of the input pixel. This allows the output pixel to be affected by the immediate neighborhood in a way that can be mathematically specified with a kernel, and the kernel size is 3 * 3 by passing in a float array with the length of 9.
The destination texture always has a alpha channel, and color components will be pre-multiplied with the alpha component. The convolution operation provides a free transformation effect for the input texture, and two predefined convolution operations are provided in the Texture class, which are transparency and Gaussian blur(averageConvolve33 and gaussianBlurConvolve33). Also, you can use the method convolve to get an instance of this class. All convolution operations and processed textures will be cached by the Texture class to improve rendering performance.
For the edge pixels of the image, the default value of missing pixels within the convolution radius is set to 0 when performing convolution operations.
Return
an instance of TextureOp which implements a convolution from the source texture to the destination texture.
Parameters
the kernel of the convolution.