imageconvolution
Opis
bool imageconvolution ( resource image, array matrix, float div, float offset )Applies a convolution matrix on the image, using the given coefficient and offset.
Parametry
obraz
Zasób obrazu, zwrócony przez jedną z funkcji tworzących obrazy, taką jak 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
Przykłady
Przykład 2. Gaussian blur
Powyższy przykład wyświetli: |
Notatki
Notatka: Ta funkcja jest dostępna tylko jeśli PHP zostało skompilowane z dołączoną wersją biblioteki GD.
Poprzedni | Spis treści | Następny |
imagecolortransparent | Początek rozdziału< |