eZ Publish  [4.2]
eZImageTextLayer Class Reference

Layer for text information and rendering. More...

+ Inheritance diagram for eZImageTextLayer:
+ Collaboration diagram for eZImageTextLayer:

List of all members.

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

Detailed Description

Layer for text information and rendering.

Definition at line 41 of file ezimagetextlayer.php.


Member Function Documentation

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 156 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 
)

Constructor

Definition at line 46 of file ezimagetextlayer.php.

Referenced by createForText().

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 80 of file ezimagetextlayer.php.

eZImageTextLayer::processImage ( )

Draws the text on the current image object.

Reimplemented from eZImageInterface.

Definition at line 60 of file ezimagetextlayer.php.

eZImageTextLayer::setText ( text)

Sets the current text to $text.

Definition at line 115 of file ezimagetextlayer.php.

eZImageTextLayer::setTextAngle ( textAngle)

Sets the angle of the text to $textAngle.

Definition at line 131 of file ezimagetextlayer.php.

eZImageTextLayer::text ( )
Returns:
the current text.

Definition at line 123 of file ezimagetextlayer.php.

Referenced by mergeLayer(), and processImage().

eZImageTextLayer::textAngle ( )
Returns:
the current text angle.

Definition at line 139 of file ezimagetextlayer.php.

Referenced by mergeLayer(), and processImage().

eZImageTextLayer::textBoundingBox ( )
Returns:
the current bounding box for the text. See the PHP function ImageTTFBBox for more info.

Definition at line 147 of file ezimagetextlayer.php.

Referenced by mergeLayer(), and processImage().


Member Data Documentation

eZImageTextLayer::$Angle

Definition at line 196 of file ezimagetextlayer.php.

eZImageTextLayer::$Text

Definition at line 195 of file ezimagetextlayer.php.

eZImageTextLayer::$TextBoundingBox

Definition at line 194 of file ezimagetextlayer.php.


The documentation for this class was generated from the following file: