\Pop\Image\TypeImagick

Type class for Imagick

Summary

Methods
Properties
Constants
getOpacity()
getFillColor()
getStrokeColor()
getStrokeWidth()
setFillColor()
setStrokeColor()
setStrokeWidth()
size()
font()
x()
y()
xy()
rotate()
setOpacity()
__construct()
getImage()
setImage()
hasImage()
text()
No public properties found
No constants found
No protected methods found
$size
$font
$fillColor
$strokeColor
$strokeWidth
$x
$y
$rotation
$opacity
$image
N/A
No private methods found
No private properties found
N/A

Properties

$size

$size : integer

Type font size

Type

integer

$font

$font : string

Type font

Type

string

$strokeWidth

$strokeWidth : integer

Stroke width

Type

integer

$x

$x : integer

Type X-position

Type

integer

$y

$y : integer

Type Y-position

Type

integer

$rotation

$rotation : integer

Type rotation in degrees

Type

integer

$opacity

$opacity : float

Opacity

Type

float

$image

$image : mixed

Image object

Type

mixed

Methods

getOpacity()

getOpacity() : mixed

Get the opacity

Returns

mixed

getStrokeWidth()

getStrokeWidth() : integer

Get stroke width

Returns

integer

setStrokeWidth()

setStrokeWidth(integer  $w) : \Pop\Image\Type\AbstractType

Set stroke width

Parameters

integer $w

Returns

\Pop\Image\Type\AbstractType

xy()

xy(integer  $x, integer  $y) : \Pop\Image\Type\AbstractType

Set both the X- and Y-positions

Parameters

integer $x
integer $y

Returns

\Pop\Image\Type\AbstractType

rotate()

rotate(integer  $degrees) : \Pop\Image\Type\AbstractType

Set the rotation of the text

Parameters

integer $degrees

Returns

\Pop\Image\Type\AbstractType

setOpacity()

setOpacity(float  $opacity) : \Pop\Image\Type\Imagick

Set the opacity

Parameters

float $opacity

Returns

\Pop\Image\Type\Imagick

__construct()

__construct(\Pop\Image\Adapter\AbstractAdapter  $image = null) 

Constructor

Instantiate an image edit object

Parameters

\Pop\Image\Adapter\AbstractAdapter $image

hasImage()

hasImage() : boolean

Has the image object

Returns

boolean

text()

text(string  $string) : \Pop\Image\Type\Imagick

Set and apply the text on the image

Parameters

string $string

Throws

\Pop\Image\Type\Exception

Returns

\Pop\Image\Type\Imagick