Documentation

Gd extends AbstractEffect
in package

Effect class for Gd

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

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

license

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

version
4.0.0

Table of Contents

Properties

$image  : mixed
Image object

Methods

__construct()  : mixed
Constructor
border()  : Gd
Draw a border around the image.
calculateSteps()  : int|float
Calculate the steps between two points
fill()  : Gd
Flood the image with a color fill.
getBlend()  : array<string|int, mixed>
Get the blend between 2 colors
getImage()  : AbstractAdapter|null
Get the image object
hasImage()  : bool
Has the image object
horizontalGradient()  : Gd
Flood the image with a vertical color gradient.
linearGradient()  : Gd
Flood the image with a color gradient.
radialGradient()  : Gd
Flood the image with a vertical color gradient.
setImage()  : AbstractEditObject
Set the image object
verticalGradient()  : Gd
Flood the image with a vertical color gradient.

Properties

Methods

border()

Draw a border around the image.

public border(ColorInterface $color, int|float $w[, int|float|null $h = null ]) : Gd
Parameters
$color : ColorInterface
$w : int|float
$h : int|float|null = null
Return values
Gd

calculateSteps()

Calculate the steps between two points

public calculateSteps(int $curStep, int $start, int $end, int $totalSteps) : int|float
Parameters
$curStep : int
$start : int
$end : int
$totalSteps : int
Return values
int|float

        
On this page

Search results