imageaffinematrixget
Obtenir une matrice de transformation affine
&reftitle.description;
arrayfalseimageaffinematrixget
inttype
arrayfloatoptions
Retourne une matrice de transformation affine.
&reftitle.parameters;
type
Une constante parmi IMG_AFFINE_*.
options
Si type est IMG_AFFINE_TRANSLATE
ou IMG_AFFINE_SCALE,
options doit être un array avec
les clées x
et y, les deux étant des valeurs float.
Si type est IMG_AFFINE_ROTATE,
IMG_AFFINE_SHEAR_HORIZONTAL ou
IMG_AFFINE_SHEAR_VERTICAL,
options doit être une valeur float
spécifiant l'angle.
&reftitle.returnvalues;
Une matrice de transformation affine (un tableau avec des clés de 0 à 5 et nombres décimaux en valeur).
&return.falseforfailure;.
&reftitle.examples;
Exemple pour imageaffinematrixget
2, 'y' => 3));
print_r($matrix);
?>
]]>
&example.outputs;
1
[1] => 0
[2] => 0
[3] => 1
[4] => 2
[5] => 3
)
]]>
&reftitle.seealso;
imageaffine
imageaffinematrixconcat