eZPublishCommunityProject(LegacyStack)  2013.5
eZImageLayer Class Reference

Defines a layer in a image object. More...

+ Inheritance diagram for eZImageLayer:
+ Collaboration diagram for eZImageLayer:

Public Member Functions

 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 createForFile ($fileName, $filePath, $fileType=false)
 
- Static Public Member Functions inherited from eZImageInterface
static cleanupRegisteredImages ()
 
static hasGD2 ()
 
static unregisterImage ($imageRef)
 

Public Attributes

 $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

Defines a layer in a image object.

Member Function Documentation

static eZImageLayer::createForFile (   $fileName,
  $filePath,
  $fileType = false 
)
static

Creates a new file layer for the file $fileName in path $filePath.

Referenced by eZTemplateImageOperator\loadImage(), and eZTemplateImageOperator\modify().

eZImageLayer::eZImageLayer (   $imageObjectRef = null,
  $imageObject = null,
  $width = false,
  $height = false,
  $font = false 
)

Constructor

Referenced by createForFile(), and eZImageTextLayer\eZImageTextLayer().

eZImageLayer::mergeLayer (   $image,
  $layerData,
  $lastLayerData 
)

Tries to merge the current layer with the layer $lastLayerData onto the image object $image. Different kinds of layer classes will merge layers differently.

eZImageLayer::setTemplateURI (   $uri)

Sets the URI of the template to use for displaying it using the template engine to $uri.

eZImageLayer::templateData ( )

A definition which tells the template engine which template to use for displaying the image.

Member Data Documentation

eZImageLayer::$TemplateURI

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