\Pop\Image\TypeGd

Type class for Gd

Summary

Methods
Properties
Constants
getOpacity()
getFillColor()
getStrokeColor()
getStrokeWidth()
setFillColor()
setStrokeColor()
setStrokeWidth()
size()
font()
x()
y()
xy()
rotate()
setOpacity()
__construct()
getImage()
setImage()
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 : integer

Opacity

Type

integer

$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(integer  $opacity) : \Pop\Image\Type\Gd

Set the opacity

Parameters

integer $opacity

Returns

\Pop\Image\Type\Gd

__construct()

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

Constructor

Instantiate an image edit object

Parameters

\Pop\Image\Adapter\AbstractAdapter $image

text()

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

Set and apply the text on the image

Parameters

string $string

Returns

\Pop\Image\Type\Gd