|
eZ Publish
[trunk]
|
Layer for text information and rendering. More...
Inheritance diagram for eZImageTextLayer:
Collaboration diagram for eZImageTextLayer:Public Member Functions | |
| eZImageTextLayer ($imageObjectRef=null, $imageObject=null, $width=false, $height=false, $font=false, $boundingBox=null, $text=null, $textAngle=0) | |
| mergeLayer ($image, $layerData, $lastLayerData) | |
| processImage () | |
| setText ($text) | |
| setTextAngle ($textAngle) | |
| text () | |
| textAngle () | |
| textBoundingBox () | |
Static Public Member Functions | |
| static | createForText ($text, &$font, $widthAdjustment, $heightAdjustment, $angle, $absoluteWidth=false, $absoluteHeight=false) |
Public Attributes | |
| $Angle | |
| $Text | |
| $TextBoundingBox | |
Layer for text information and rendering.
Definition at line 18 of file ezimagetextlayer.php.
| static eZImageTextLayer::createForText | ( | $ | text, |
| &$ | font, | ||
| $ | widthAdjustment, | ||
| $ | heightAdjustment, | ||
| $ | angle, | ||
| $ | absoluteWidth = false, |
||
| $ | absoluteHeight = false |
||
| ) | [static] |
Creates a new text layer with the text $text, font $font and adjustment $widthAdjustment and $heightAdjustment at the angle $angle and returns it.
Definition at line 133 of file ezimagetextlayer.php.
Referenced by eZTemplateImageOperator\modify().
| eZImageTextLayer::eZImageTextLayer | ( | $ | imageObjectRef = null, |
| $ | imageObject = null, |
||
| $ | width = false, |
||
| $ | height = false, |
||
| $ | font = false, |
||
| $ | boundingBox = null, |
||
| $ | text = null, |
||
| $ | textAngle = 0 |
||
| ) |
| eZImageTextLayer::mergeLayer | ( | $ | image, |
| $ | layerData, | ||
| $ | lastLayerData | ||
| ) |
Renders the text with the other layer data. It will perform something that will look like alphablending of the text.
It will copy the area which it will render on from the other layer and render on it and then merge the result back on the other layer using the transparency value. This means that the original image data is kept and the actual text will be transparent.
Reimplemented from eZImageLayer.
Definition at line 57 of file ezimagetextlayer.php.
Draws the text on the current image object.
Reimplemented from eZImageInterface.
Definition at line 37 of file ezimagetextlayer.php.
| eZImageTextLayer::setText | ( | $ | text | ) |
Sets the current text to $text.
Definition at line 92 of file ezimagetextlayer.php.
| eZImageTextLayer::setTextAngle | ( | $ | textAngle | ) |
Sets the angle of the text to $textAngle.
Definition at line 108 of file ezimagetextlayer.php.
Definition at line 100 of file ezimagetextlayer.php.
Referenced by mergeLayer(), and processImage().
Definition at line 116 of file ezimagetextlayer.php.
Referenced by mergeLayer(), and processImage().
Definition at line 124 of file ezimagetextlayer.php.
Referenced by mergeLayer(), and processImage().
| eZImageTextLayer::$Angle |
Definition at line 173 of file ezimagetextlayer.php.
| eZImageTextLayer::$Text |
Definition at line 172 of file ezimagetextlayer.php.
| eZImageTextLayer::$TextBoundingBox |
Definition at line 171 of file ezimagetextlayer.php.