(PHP 5 >= 5.5.0, PHP 7, PHP 8)
imageaffinematrixget — Obtener una matriz de transformación afín
Devuelve una matriz de transformación afín.
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.
     
   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.
  
Ejemplo #1 Ejemplo para imageaffinematrixget()
<?php
$matrix = imageaffinematrixget(IMG_AFFINE_TRANSLATE, array('x' => 2, 'y' => 3));
print_r($matrix);
?>El ejemplo anterior mostrará:
Array
(
    [0] => 1
    [1] => 0
    [2] => 0
    [3] => 1
    [4] => 2
    [5] => 3
)
