imageaffinematrixget
En esta página
imageaffinematrixget
Obtener una matriz de transformación afín
Descripción#
imageaffinematrixget(int $type, array $options): array
```php
Devuelve una matriz de transformación afín.
## Parámetros
`type`
Una constante entre `IMG_AFFINE_*`.
`options`
Si `type` es `IMG_AFFINE_TRANSLATE` o `IMG_AFFINE_SCALE`, `options` debe ser un `array` con las claves `x` y `y`, ambas con valores `float`.
Si `type` es `IMG_AFFINE_ROTATE`, `IMG_AFFINE_SHEAR_HORIZONTAL` o `IMG_AFFINE_SHEAR_VERTICAL`, `options` debe ser un valor `float` que especifique el ángulo.
## Valores devueltos
Una matriz de transformación afín (un array con claves de `0` a `5` y números decimales como valores). o `false` si ocurre un error.
## Ejemplos
Ejemplo para `imageaffinematrixget`
```php
El ejemplo anterior mostrará:
Array
(
[0] => 1
[1] => 0
[2] => 0
[3] => 1
[4] => 2
[5] => 3
)
Véase también#
imageaffine
imageaffinematrixconcat