\Pop\Image\TypeGmagick

Type class for Gmagick

This class has been deprecated as of 2/6/2020 and will no longer be maintained. Please use the Imagick classes instead.

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\Gmagick

Set the opacity

Parameters

float $opacity

Returns

\Pop\Image\Type\Gmagick

__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\Gmagick

Set and apply the text on the image

Parameters

string $string

Throws

\Pop\Image\Type\Exception

Returns

\Pop\Image\Type\Gmagick