AbstractDraw
extends AbstractEditObject
in package
implements
DrawInterface
AbstractYes
Draw abstract class
Tags
Table of Contents
Interfaces
- DrawInterface
- Draw interface
Properties
- $fillColor : Colorinterface|null
- Fill color
- $image : mixed
- Image object
- $opacity : int|float|null
- Opacity
- $strokeColor : Colorinterface|null
- Stroke color
- $strokeWidth : int
- Stroke width
Methods
- __construct() : mixed
- Constructor
- getFillColor() : Colorinterface
- Get fill color
- getImage() : AbstractAdapter|null
- Get the image object
- getOpacity() : mixed
- Get the opacity
- getStrokeColor() : Colorinterface
- Get stroke color
- getStrokeWidth() : int
- Get stroke width
- hasImage() : bool
- Has the image object
- setFillColor() : AbstractDraw
- Set fill color
- setImage() : AbstractEditObject
- Set the image object
- setOpacity() : AbstractDraw
- Set the opacity
- setStrokeColor() : AbstractDraw
- Set stroke color
- setStrokeWidth() : AbstractDraw
- Get stroke width
Properties
$fillColor
Fill color
protected
Colorinterface|null
$fillColor
= null
$image
Image object
protected
mixed
$image
= null
$opacity
Opacity
protected
int|float|null
$opacity
= null
$strokeColor
Stroke color
protected
Colorinterface|null
$strokeColor
= null
$strokeWidth
Stroke width
protected
int
$strokeWidth
= 0
Methods
__construct()
Constructor
public
__construct([AbstractAdapter|null $image = null ]) : mixed
Instantiate an image edit object
Parameters
- $image : AbstractAdapter|null = null
getFillColor()
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() : mixed
getStrokeColor()
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
boolsetFillColor()
Set fill color
public
setFillColor(ColorInterface $color) : AbstractDraw
Parameters
- $color : ColorInterface
Return values
AbstractDrawsetImage()
Set the image object
public
setImage(AbstractAdapter $image) : AbstractEditObject
Parameters
- $image : AbstractAdapter
Return values
AbstractEditObjectsetOpacity()
Set the opacity
public
abstract setOpacity(int|float $opacity) : AbstractDraw
Parameters
- $opacity : int|float
Return values
AbstractDrawsetStrokeColor()
Set stroke color
public
setStrokeColor(ColorInterface $color) : AbstractDraw
Parameters
- $color : ColorInterface
Return values
AbstractDrawsetStrokeWidth()
Get stroke width
public
setStrokeWidth(int $w) : AbstractDraw
Parameters
- $w : int