Horde_Image_Effect_Im_DropShadow
extends Horde_Image_Effect
in package
Image effect for adding a drop shadow.
Tags
Table of Contents
- $_image : Horde_Image
- The bound Horde_Image object
- $_logger : mixed
- Logger.
- $_params : array<string|int, mixed>
- Valid parameters: Most are currently ignored for the im version of this effect.
- __construct() : mixed
- Effect constructor.
- apply() : mixed
- Applies the effect.
- factory() : Horde_Image_Effect
- Effect factory.
- setImageObject() : mixed
- Bind this effect to a Horde_Image object.
- setLogger() : mixed
- Attaches a logger.
Properties
$_image
The bound Horde_Image object
protected
Horde_Image
$_image
= \null
$_logger
Logger.
protected
mixed
$_logger
$_params
Valid parameters: Most are currently ignored for the im version of this effect.
protected
array<string|int, mixed>
$_params
= array(
'distance' => 5,
// This is used as the x and y offset
'width' => 2,
'hexcolor' => '000000',
'angle' => 215,
'fade' => 3,
// Sigma value
'padding' => 0,
'background' => 'none',
)
Tags
Methods
__construct()
Effect constructor.
public
__construct([array<string|int, mixed> $params = array() ]) : mixed
Parameters
- $params : array<string|int, mixed> = array()
-
Any parameters for the effect. Parameters are documented in each subclass.
Return values
mixed —apply()
Applies the effect.
public
apply() : mixed
Return values
mixed —factory()
Effect factory.
public
static factory(string $type, string $driver, array<string|int, mixed> $params) : Horde_Image_Effect
Parameters
- $type : string
-
An effect name.
- $driver : string
-
An image driver name.
- $params : array<string|int, mixed>
-
Any effect parameters.
Return values
Horde_Image_Effect —An effect instance.
setImageObject()
Bind this effect to a Horde_Image object.
public
setImageObject(Horde_Image $image) : mixed
Parameters
- $image : Horde_Image
-
The Horde_Image object
Return values
mixed —setLogger()
Attaches a logger.
public
setLogger(Horde_Log_Logger $logger) : mixed
Parameters
- $logger : Horde_Log_Logger
-
A logger.