Imagick
extends AbstractType
in package
Type class for Imagick
Tags
Table of Contents
Properties
- $fillColor : ColorInterface|null
- Fill color
- $font : string|null
- Type font
- $image : mixed
- Image object
- $opacity : int|float|null
- Opacity
- $rotation : int
- Type rotation in degrees
- $size : int
- Type font size
- $strokeColor : ColorInterface|null
- Stroke color
- $strokeWidth : int
- Stroke width
- $x : int
- Type X-position
- $y : int
- Type Y-position
Methods
- __construct() : mixed
- Constructor
- font() : AbstractType
- Set the font
- getFillColor() : ColorInterface
- Get fill color
- getImage() : AbstractAdapter|null
- Get the image object
- getOpacity() : int|float|null
- Get the opacity
- getStrokeColor() : ColorInterface
- Get stroke color
- getStrokeWidth() : int
- Get stroke width
- hasImage() : bool
- Has the image object
- rotate() : AbstractType
- Set the rotation of the text
- setFillColor() : AbstractType
- Set fill color
- setImage() : AbstractEditObject
- Set the image object
- setOpacity() : Imagick
- Set the opacity
- setStrokeColor() : AbstractType
- Set stroke color
- setStrokeWidth() : AbstractType
- Set stroke width
- size() : AbstractType
- Set the font size
- text() : Imagick
- Set and apply the text on the image
- x() : AbstractType
- Set the X-position
- xy() : AbstractType
- Set both the X- and Y-positions
- y() : AbstractType
- Set the Y-position
Properties
$fillColor
Fill color
protected
ColorInterface|null
$fillColor
= null
$font
Type font
protected
string|null
$font
= null
$image
Image object
protected
mixed
$image
= null
$opacity
Opacity
protected
int|float|null
$opacity
= 1.0
$rotation
Type rotation in degrees
protected
int
$rotation
= 0
$size
Type font size
protected
int
$size
= 12
$strokeColor
Stroke color
protected
ColorInterface|null
$strokeColor
= null
$strokeWidth
Stroke width
protected
int
$strokeWidth
= 1
$x
Type X-position
protected
int
$x
= 0
$y
Type Y-position
protected
int
$y
= 0
Methods
__construct()
Constructor
public
__construct([AbstractAdapter|null $image = null ]) : mixed
Instantiate an image edit object
Parameters
- $image : AbstractAdapter|null = null
font()
Set the font
public
font(string $font) : AbstractType
Parameters
- $font : string
Return values
AbstractTypegetFillColor()
Get fill color
public
getFillColor() : ColorInterface
Return values
ColorInterfacegetImage()
Get the image object
public
getImage() : AbstractAdapter|null
Return values
AbstractAdapter|nullgetOpacity()
Get the opacity
public
getOpacity() : int|float|null
Return values
int|float|nullgetStrokeColor()
Get stroke color
public
getStrokeColor() : ColorInterface
Return values
ColorInterfacegetStrokeWidth()
Get stroke width
public
getStrokeWidth() : int
Return values
inthasImage()
Has the image object
public
hasImage() : bool
Return values
boolrotate()
Set the rotation of the text
public
rotate(int $degrees) : AbstractType
Parameters
- $degrees : int
Return values
AbstractTypesetFillColor()
Set fill color
public
setFillColor(ColorInterface $color) : AbstractType
Parameters
- $color : ColorInterface
Return values
AbstractTypesetImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter
Return values
AbstractEditObjectsetOpacity()
Set the opacity
public
setOpacity(int|float $opacity) : Imagick
Parameters
- $opacity : int|float
Return values
ImagicksetStrokeColor()
Set stroke color
public
setStrokeColor(ColorInterface $color) : AbstractType
Parameters
- $color : ColorInterface
Return values
AbstractTypesetStrokeWidth()
Set stroke width
public
setStrokeWidth(int $w) : AbstractType
Parameters
- $w : int
Return values
AbstractTypesize()
Set the font size
public
size(int $size) : AbstractType
Parameters
- $size : int
Return values
AbstractTypetext()
Set and apply the text on the image
public
text(string $string) : Imagick
Parameters
- $string : string
Tags
Return values
Imagickx()
Set the X-position
public
x(int $x) : AbstractType
Parameters
- $x : int
Return values
AbstractTypexy()
Set both the X- and Y-positions
public
xy(int $x, int $y) : AbstractType
Parameters
- $x : int
- $y : int
Return values
AbstractTypey()
Set the Y-position
public
y(int $y) : AbstractType
Parameters
- $y : int