imageaffinematrixconcat
Description
The imageaffinematrixconcat of Image for PHP concatenate two affine transformation matrices.
Syntax
imageaffinematrixconcat(
array $matrix1,
array $matrix2
): array|falseParameters
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
)
Links
Image
- gd_info
- getimagesize
- getimagesizefromstring
- image_type_to_extension
- image_type_to_mime_type
- imageaffine
- imageaffinematrixget
- imagealphablending
- imageantialias
- imagearc
- imageavif
- imagebmp
- imagechar
- imagecharup
- imagecolorallocate
- imagecolorallocatealpha
- imagecolorat
- imagecolorclosest
- imagecolorclosestalpha
- imagecolorclosesthwb
- imagecolordeallocate
- imagecolorexact
- imagecolorexactalpha
- imagecolormatch
- imagecolorresolve
- imagecolorresolvealpha
- imagecolorset
- imagecolorsforindex
- imagecolorstotal
- imagecolortransparent
- imageconvolution
- imagecopy
- imagecopymerge
- imagecopymergegray
- imagecopyresampled
- imagecopyresized
- imagecreate
- imagecreatefromavif
- imagecreatefrombmp
- imagecreatefromgif
- imagecreatefromjpeg
- imagecreatefrompng
- imagecreatefromstring
- imagecreatefromtga
- imagecreatefromwbmp
- imagecreatefromwebp
- imagecreatefromxbm
- imagecreatefromxpm
- imagecreatetruecolor
- imagecrop
- imagecropauto
- imagedashedline
- imagedestroy
- imageellipse
- imagefill
- imagefilledarc
- imagefilledellipse
- imagefilledpolygon
- imagefilledrectangle
- imagefilltoborder
- imagefilter
- imageflip
- imagefontheight
- imagefontwidth
- imageftbbox
- imagefttext
- imagegammacorrect
- imagegetclip
- imagegetinterpolation
- imagegif
- imageinterlace
- imageistruecolor
- imagejpeg
- imagelayereffect
- imageline
- imageloadfont
- imageopenpolygon
- imagepalettecopy
- imagepalettetotruecolor
- imagepng
- imagepolygon
- imagerectangle
- imageresolution
- imagerotate
- imagesavealpha
- imagescale
- imagesetbrush
- imagesetclip
- imagesetinterpolation
- imagesetpixel
- imagesetstyle
- imagesetthickness
- imagesettile
- imagestring
- imagestringup
- imagesx
- imagesy
- imagetruecolortopalette
- imagettfbbox
- imagettftext
- imagetypes
- imagewbmp
- imagewebp
- imagexbm
- iptcembed
- iptcparse