Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

imageaffinematrixconcat

Description

The imageaffinematrixconcat of Image for PHP concatenate two affine transformation matrices.

Syntax

imageaffinematrixconcat(
    array $matrix1,
    array $matrix2
): array|false

Parameters

matrix1

An affine transformation matrix (an array with keys 0 to 5 and float values).

matrix2

An affine transformation matrix (an array with keys 0 to 5 and float values).

Return

An affine transformation matrix (an array with keys 0 to 5 and float values) or false on failure.

Examples

1 · matrix1 matrix2

<?

$type1 = IMG_AFFINE_TRANSLATE;
$options1 = array('x' => 2, 'y' => 3);
$matrix1 = imageaffinematrixget($type1, $options1);

$type2 = IMG_AFFINE_SCALE;
$options2 = array('x' => 4, 'y' => 5);
$matrix2 = imageaffinematrixget($type2, $options2);

$return = imageaffinematrixconcat($matrix1, $matrix2);

print_r($return);

?>
Array
(
    [0] => 4
    [1] => 0
    [2] => 0
    [3] => 5
    [4] => 8
    [5] => 15
)
HomeMenu