__construct()
__construct(mixed $image1, mixed $image2, \BarcodeBakery\Common\BCGColor $background, int $space = 10, int $position = self::POSITION_RIGHT, int $alignment = self::ALIGN_TOP) : mixed
Construct the JoinDrawing Object.
- $image1 and $image2 have to be BCGDrawing object or image object.
- $space is the space between the two graphics in pixel.
- $position is the position of the $image2 depending the $image1.
- $alignment is the alignment of the $image2 if this one is smaller than $image1;
if $image2 is bigger than $image1, the $image1 will be positionned on the opposite side specified.
Parameters
| mixed |
$image1 |
|
| mixed |
$image2 |
|
| \BarcodeBakery\Common\BCGColor |
$background |
|
| int |
$space |
|
| int |
$position |
|
| int |
$alignment |
|
Returns
mixed
—