(PHP 5 >= 5.5.0, PHP 7, PHP 8)
imageaffinematrixget — Obtém uma matriz de transformação afim
Retorna uma matriz de transformação afim.
type
      Uma das constantes IMG_AFFINE_*.
     
options
      Se type for IMG_AFFINE_TRANSLATE
      ou IMG_AFFINE_SCALE,
      options deve ser um array com chaves x
      e y, ambas tendo valores float.
     
      Se type for IMG_AFFINE_ROTATE,
      IMG_AFFINE_SHEAR_HORIZONTAL ou IMG_AFFINE_SHEAR_VERTICAL,
      options deve ser um float especificando o ângulo em graus.
     
   Uma matriz de transformação afim (um array com chaves de
   0 a 5 e valores float)
    ou false em caso de falha.
  
Exemplo #1 Exemplo de imageaffinematrixget()
<?php
$matrix = imageaffinematrixget(IMG_AFFINE_TRANSLATE, array('x' => 2, 'y' => 3));
print_r($matrix);
?>O exemplo acima produzirá:
Array
(
    [0] => 1
    [1] => 0
    [2] => 0
    [3] => 1
    [4] => 2
    [5] => 3
)
