Manuál PHP | ||
---|---|---|
Předcházející | Další |
imageconvolution
Popis
bool imageconvolution ( resource image, array matrix, float div, float offset )Applies a convolution matrix on the image, using the given coefficient and offset.
Seznam parametrů
image
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
matrix
A 3x3 matrix: an array of three arrays of three floats.
div
The divisor of the result of the convolution, used for normalization.
offset
Příklady
Příklad 2. Gaussian blur
Výše uvedený příklad vypíše: |
Poznámky
Poznámka: Tato funce je k dispozici jen tehdy, bylo-li PHP zkompilováno s přibalenou verzí knihovny GD.
Předcházející | Domů | Další |
imagecolortransparent | Nahoru< |