Documentation

Gd extends AbstractType
in package

Type class for Gd

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2021 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
3.4.0

Table of Contents

$fillColor  : ColorInterface
Fill color
$font  : string
Type font
$image  : mixed
Image object
$opacity  : int
Opacity
$rotation  : int
Type rotation in degrees
$size  : int
Type font size
$strokeColor  : ColorInterface
Stroke color
$strokeWidth  : int
Stroke width
$x  : int
Type X-position
$y  : int
Type Y-position
__construct()  : mixed
Constructor
font()  : AbstractType
Set the font
getFillColor()  : ColorInterface
Get fill color
getImage()  : AbstractAdapter
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
rotate()  : AbstractType
Set the rotation of the text
setFillColor()  : AbstractType
Set fill color
setImage()  : AbstractEditObject
Set the image object
setOpacity()  : Gd
Set the opacity
setStrokeColor()  : AbstractType
Set stroke color
setStrokeWidth()  : AbstractType
Set stroke width
size()  : AbstractType
Set the font size
text()  : Gd
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

$opacity

Opacity

protected int $opacity = 0

$rotation

Type rotation in degrees

protected int $rotation = 0

$strokeWidth

Stroke width

protected int $strokeWidth = 1

Methods

getOpacity()

Get the opacity

public getOpacity() : mixed
Return values
mixed

getStrokeWidth()

Get stroke width

public getStrokeWidth() : int
Return values
int

setOpacity()

Set the opacity

public setOpacity(int $opacity) : Gd
Parameters
$opacity : int
Return values
Gd

text()

Set and apply the text on the image

public text(string $string) : Gd
Parameters
$string : string
Return values
Gd

Search results