Image object which handles image layers.
More...
Inheritance diagram for eZImageObject:
List of all members.
|
Public Methods |
| templateData () |
| setTemplateURI ($uri) |
| calculateAxisPlacement ($value,$type,$alignment,$axisStart,$axisStop,$currentLength) |
| initializeAxis ($parameters,$name) |
| calculatePosition ($parameters,$width,$height) |
| getTransparency ($parameters) |
| getTransparencyPercent ($parameters) |
| appendLayer (&$imageLayer,$parameters=array()) |
| prependLayer (&$imageLayer,$parameters=array()) |
| hasLayer ($layerID) |
| removeLayer ($layerID) |
| processImage () |
| flatten () |
Public Attributes |
| ImageLayers |
| \privatesection
|
Detailed Description
Image object which handles image layers.
Definition at line ezimageobject.php.
Member Function Documentation
eZImageObject::appendLayer |
( |
&$ |
imageLayer, |
|
|
$ |
parameters = array() |
|
) |
|
|
eZImageObject::calculateAxisPlacement |
( |
$ |
value, |
|
|
$ |
type, |
|
|
$ |
alignment, |
|
|
$ |
axisStart, |
|
|
$ |
axisStop, |
|
|
$ |
currentLength |
|
) |
|
|
|
Figures out the absolute axis placement and returns it. The variable $type determines how $value is used, it can either be a constant value (EZ_IMAGE_PLACE_CONSTANT) or a relative value (EZ_IMAGE_PLACE_RELATIVE) where input value is placed relative to the length of the axis ($axisStop - $axisStart). $alignment determines where the axis should start, EZ_IMAGE_ALIGN_AXIS_NONE and EZ_IMAGE_ALIGN_AXIS_START will return the position from $axisStart towards $axisStop, EZ_IMAGE_ALIGN_AXIS_STOP returns the position from the $axisStop towards $axisStart while EZ_IMAGE_ALIGN_AXIS_CENTER returns the middle of $axisStart and $axisStop.
Definition at line ezimageobject.php.
Referenced by calculatePosition(). |
eZImageObject::calculatePosition |
( |
$ |
parameters, |
|
|
$ |
width, |
|
|
$ |
height |
|
) |
|
|
|
Calculates the position for x and y parameters in $parameters and returns an absolute position in an array. The returned array will contain the x and y key.
Definition at line ezimageobject.php.
References eZImageInterface::width(). |
eZImageObject::flatten |
( |
|
) |
|
|
eZImageObject::getTransparency |
( |
$ |
parameters |
) |
|
|
eZImageObject::getTransparencyPercent |
( |
$ |
parameters |
) |
|
|
eZImageObject::hasLayer |
( |
$ |
layerID |
) |
|
|
|
- Returns:
-
true if the layer with ID $layerID exists in this image object.
Definition at line ezimageobject.php. |
eZImageObject::initializeAxis |
( |
$ |
parameters, |
|
|
$ |
name |
|
) |
|
|
eZImageObject::prependLayer |
( |
&$ |
imageLayer, |
|
|
$ |
parameters = array() |
|
) |
|
|
eZImageObject::processImage |
( |
|
) |
|
|
eZImageObject::removeLayer |
( |
$ |
layerID |
) |
|
|
eZImageObject::setTemplateURI |
( |
$ |
uri |
) |
|
|
|
Sets the URI of the template to use for displaying it using the template engine to $uri.
Definition at line ezimageobject.php. |
eZImageObject::templateData |
( |
|
) |
|
|
|
A definition which tells the template engine which template to use for displaying the image.
Definition at line ezimageobject.php. |
The documentation for this class was generated from the following file:
|