imageaffinematrixget
imageaffinematrixget
Get an affine transformation matrix
**imageaffinematrixget** int $type $options
Returns an affine transformation matrix.
type
One of the constants.
IMG_AFFINE_*
options
If is
or ,
has to be an with keys
and , both having values.
type``IMG_AFFINE_TRANSLATE``IMG_AFFINE_SCALE``options``array``x``y``float
If is ,
or ,
has to be a specifying the angle.
`type``IMG_AFFINE_ROTATE``IMG_AFFINE_SHEAR_HORIZONTAL``IMG_AFFINE_SHEAR_VERTICAL``options``float`
An affine transformation matrix (an array with keys
to and float values)
return.falseforfailure.
0``5
Voorbeeld: example
<?php
$matrix = imageaffinematrixget(IMG_AFFINE_TRANSLATE, array('x' => 2, 'y' => 3));
print_r($matrix);
?>
Array
(
[0] => 1
[1] => 0
[2] => 0
[3] => 1
[4] => 2
[5] => 3
)
imageaffine``imageaffinematrixconcat