eZPublish(LegacyStack)  5.1
eZImageTextLayer Class Reference

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 ()
 
- Public Member Functions inherited from eZImageLayer
 eZImageLayer ($imageObjectRef=null, $imageObject=null, $width=false, $height=false, $font=false)
 
 mergeLayer ($image, $layerData, $lastLayerData)
 
 setTemplateURI ($uri)
 
 templateData ()
 
- Public Member Functions inherited from eZImageInterface
 __clone ()
 
 allocateColor ($name, $red, $green, $blue)
 
 alternativeText ()
 
 attribute ($name)
 
 attributes ()
 
 blendImage ($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX=0, $sourceY=0)
 
 clear ($color=false)
 
 cloneImage ($imageObject, $width, $height, $useTruecolor=null)
 
 color ($name)
 
 copyImage ($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX=0, $sourceY=0)
 
 create ($width, $height, $useTruecolor=null)
 
 destroy ()
 
 drawText (&$font, $textColor, $text, $x, $y, $angle, $imageObject=null)
 
 eZImageInterface ($imageObjectRef=null, $imageObject=null, $width=false, $height=false)
 
 font ()
 
 hasAttribute ($name)
 
hasSize ()
 
 height ()
 
 imageObject ($createMissing=true)
 
imagePath ()
 
 isProcessed ()
 
 isTruecolor ()
 
 load ()
 
 loadGIF ($storedPath, $storedFile)
 
 loadJPEG ($storedPath, $storedFile)
 
 loadPNG ($storedPath, $storedFile)
 
 merge ($imageObject, $x, $y, $width, $height)
 
 mergeImage ($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX=0, $sourceY=0, $transparency=0)
 
 process ()
 
 processImage ()
 
 setAlternativeText ($text)
 
 setFont ($font)
 
 setHeight ($h)
 
 setStoredFile ($file, $path, $type)
 
 setTextColor ($textColor)
 
 setWidth ($w)
 
 store ($fileName, $filePath, $type)
 
 textColor ()
 
 width ()
 

Static Public Member Functions

static createForText ($text, &$font, $widthAdjustment, $heightAdjustment, $angle, $absoluteWidth=false, $absoluteHeight=false)
 
- Static Public Member Functions inherited from eZImageLayer
static createForFile ($fileName, $filePath, $fileType=false)
 
- Static Public Member Functions inherited from eZImageInterface
static cleanupRegisteredImages ()
 
static hasGD2 ()
 
static unregisterImage ($imageRef)
 

Public Attributes

 $Angle
 
 $Text
 
 $TextBoundingBox
 
- Public Attributes inherited from eZImageLayer
 $TemplateURI
 
- Public Attributes inherited from eZImageInterface
 $AlternativeText
 
 $Font
 
 $Height
 
 $ImageObject
 
 $ImageObjectRef
 
 $IsProcessed
 
 $IsTrueColor
 
 $Palette
 
 $PaletteIndex
 
 $StoredFile
 
 $StoredPath
 
 $StoredType
 
 $Width
 

Additional Inherited Members

- Protected Member Functions inherited from eZImageInterface
 imageObjectInternal ($createMissing=true)
 
- Static Protected Member Functions inherited from eZImageInterface
static registerImage ($image)
 

Detailed Description

Layer for text information and rendering.

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.

Referenced by eZTemplateImageOperator\modify().

eZImageTextLayer::eZImageTextLayer (   $imageObjectRef = null,
  $imageObject = null,
  $width = false,
  $height = false,
  $font = false,
  $boundingBox = null,
  $text = null,
  $textAngle = 0 
)

Constructor

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.

eZImageTextLayer::processImage ( )

Draws the text on the current image object.

eZImageTextLayer::setText (   $text)

Sets the current text to $text.

eZImageTextLayer::setTextAngle (   $textAngle)

Sets the angle of the text to $textAngle.

eZImageTextLayer::text ( )
Returns
the current text.

Referenced by mergeLayer(), and processImage().

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

Referenced by mergeLayer(), and processImage().

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

Referenced by mergeLayer(), and processImage().

Member Data Documentation

eZImageTextLayer::$Angle
eZImageTextLayer::$Text

Referenced by text().

eZImageTextLayer::$TextBoundingBox

Referenced by textBoundingBox().


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