2.0, "y" => 2.0]); $move = imageaffinematrixget(IMG_AFFINE_TRANSLATE, ["x" => 5.0, "y" => 3.0]); $first = imageaffinematrixconcat($scale, $move); $second = imageaffinematrixconcat($move, $scale); $x = 4; $y = 2; echo $first[0] * $x + $first[2] * $y + $first[4], ",", $first[1] * $x + $first[3] * $y + $first[5], "\n"; echo $second[0] * $x + $second[2] * $y + $second[4], ",", $second[1] * $x + $second[3] * $y + $second[5], "\n";