array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.imageaffinematrixconcat.php', 1 => 'imageaffinematrixconcat', ), 'up' => array ( 0 => 'ref.image.php', 1 => 'Fonctions GD et images', ), 'prev' => array ( 0 => 'function.imageaffine.php', 1 => 'imageaffine', ), 'next' => array ( 0 => 'function.imageaffinematrixget.php', 1 => 'imageaffinematrixget', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/image/functions/imageaffinematrixconcat.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.5.0, PHP 7, PHP 8)
imageaffinematrixconcat — Concatène deux matrices de transformation affine
Retourne la concaténation de deux matrices de transformation affine, ce qui est utile si plusieurs transformations doivent être appliquées à la même image en une seule fois.
matrix1
Une matrice de transformation affine (un tableau avec des clés de 0
à 5
et nombres décimaux en valeur).
matrix2
Une matrice de transformation affine (un tableau avec des clés de 0
à 5
et nombres décimaux en valeur).
Une matrice de transformation affine (un tableau avec des clés de 0
à 5
et nombres décimaux en valeur).
ou false
si une erreur survient.
Exemple #1 Exemple pour imageaffinematrixconcat()
<?php
$m1 = imageaffinematrixget(IMG_AFFINE_TRANSLATE, array('x' => 2, 'y' => 3));
$m2 = imageaffinematrixget(IMG_AFFINE_SCALE, array('x' => 4, 'y' => 5));
$matrix = imageaffinematrixconcat($m1, $m2);
print_r($matrix);
?>
L'exemple ci-dessus va afficher :
Array ( [0] => 4 [1] => 0 [2] => 0 [3] => 5 [4] => 8 [5] => 15 )