\Pop\Image\DrawGmagick

Draw 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
setOpacity()
getOpacity()
getFillColor()
getStrokeColor()
getStrokeWidth()
setFillColor()
setStrokeColor()
setStrokeWidth()
__construct()
getImage()
setImage()
hasImage()
line()
rectangle()
square()
roundedRectangle()
roundedSquare()
ellipse()
circle()
arc()
chord()
pie()
polygon()
No public properties found
No constants found
No protected methods found
$opacity
$fillColor
$strokeColor
$strokeWidth
$image
N/A
No private methods found
No private properties found
N/A

Properties

$opacity

$opacity : float

Opacity

Type

float

$fillColor

$fillColor : \Pop\Image\Color\Colorinterface

Fill color

Type

\Pop\Image\Color\Colorinterface

$strokeColor

$strokeColor : \Pop\Image\Color\Colorinterface

Stroke color

Type

\Pop\Image\Color\Colorinterface

$strokeWidth

$strokeWidth : integer

Stroke width

Type

integer

$image

$image : mixed

Image object

Type

mixed

Methods

setOpacity()

setOpacity(float  $opacity) : \Pop\Image\Draw\Gmagick

Set the opacity

Parameters

float $opacity

Returns

\Pop\Image\Draw\Gmagick

getOpacity()

getOpacity() : mixed

Get the opacity

Returns

mixed

getFillColor()

getFillColor() : \Pop\Image\Color\Colorinterface

Get fill color

Returns

\Pop\Image\Color\Colorinterface

getStrokeColor()

getStrokeColor() : \Pop\Image\Color\Colorinterface

Get stroke color

Returns

\Pop\Image\Color\Colorinterface

getStrokeWidth()

getStrokeWidth() : integer

Get stroke width

Returns

integer

setStrokeWidth()

setStrokeWidth(integer  $w) : \Pop\Image\Draw\AbstractDraw

Get stroke width

Parameters

integer $w

Returns

\Pop\Image\Draw\AbstractDraw

__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

line()

line(integer  $x1, integer  $y1, integer  $x2, integer  $y2) : \Pop\Image\Draw\Gmagick

Draw a line on the image.

Parameters

integer $x1
integer $y1
integer $x2
integer $y2

Returns

\Pop\Image\Draw\Gmagick

rectangle()

rectangle(integer  $x, integer  $y, integer  $w, integer  $h = null) : \Pop\Image\Draw\Gmagick

Draw a rectangle on the image.

Parameters

integer $x
integer $y
integer $w
integer $h

Returns

\Pop\Image\Draw\Gmagick

square()

square(integer  $x, integer  $y, integer  $w) : \Pop\Image\Draw\Gmagick

Draw a square on the image.

Parameters

integer $x
integer $y
integer $w

Returns

\Pop\Image\Draw\Gmagick

roundedRectangle()

roundedRectangle(integer  $x, integer  $y, integer  $w, integer  $h = null, integer  $rx = 10, integer  $ry = null) : \Pop\Image\Draw\Gmagick

Draw a rounded rectangle on the image.

Parameters

integer $x
integer $y
integer $w
integer $h
integer $rx
integer $ry

Returns

\Pop\Image\Draw\Gmagick

roundedSquare()

roundedSquare(integer  $x, integer  $y, integer  $w, integer  $rx = 10, integer  $ry = null) : \Pop\Image\Draw\Gmagick

Draw a rounded square on the image.

Parameters

integer $x
integer $y
integer $w
integer $rx
integer $ry

Returns

\Pop\Image\Draw\Gmagick

ellipse()

ellipse(integer  $x, integer  $y, integer  $w, integer  $h = null) : \Pop\Image\Draw\Gmagick

Draw an ellipse on the image.

Parameters

integer $x
integer $y
integer $w
integer $h

Returns

\Pop\Image\Draw\Gmagick

circle()

circle(integer  $x, integer  $y, integer  $w) : \Pop\Image\Draw\Gmagick

Method to add a circle to the image.

Parameters

integer $x
integer $y
integer $w

Returns

\Pop\Image\Draw\Gmagick

arc()

arc(integer  $x, integer  $y, integer  $start, integer  $end, integer  $w, integer  $h = null) : \Pop\Image\Draw\Gmagick

Draw an arc on the image.

Parameters

integer $x
integer $y
integer $start
integer $end
integer $w
integer $h

Returns

\Pop\Image\Draw\Gmagick

chord()

chord(integer  $x, integer  $y, integer  $start, integer  $end, integer  $w, integer  $h = null) : \Pop\Image\Draw\Gmagick

Draw a chord on the image.

Parameters

integer $x
integer $y
integer $start
integer $end
integer $w
integer $h

Returns

\Pop\Image\Draw\Gmagick

pie()

pie(integer  $x, integer  $y, integer  $start, integer  $end, integer  $w, integer  $h = null) : \Pop\Image\Draw\Gmagick

Draw a pie slice on the image.

Parameters

integer $x
integer $y
integer $start
integer $end
integer $w
integer $h

Returns

\Pop\Image\Draw\Gmagick

polygon()

polygon(array  $points) : \Pop\Image\Draw\Gmagick

Draw a polygon on the image.

Parameters

array $points

Returns

\Pop\Image\Draw\Gmagick