Class

eZImageLayer

class eZImageLayer extends eZImageInterface

Properties

$Width
$Height
$Font
$ImageObject
$ImageObjectRef
$StoredFile
$StoredPath
$StoredType
$PaletteIndex
$Palette
$AlternativeText
$IsTrueColor
$IsProcessed
$TemplateURI

Methods

__construct(string $imageObjectRef = null, eZContentObject $imageObject = null, int|bool $width = false, int|bool $height = false, $font = false)

Constructor

isTruecolor()

from eZImageInterface
attributeMemberMap()

from eZImageInterface
attributeFunctionMap()

from eZImageInterface
attributes()

from eZImageInterface
hasAttribute($name)

from eZImageInterface
attribute($name)

from eZImageInterface
isProcessed()

from eZImageInterface
hasSize()

from eZImageInterface
imagePath()

from eZImageInterface
setAlternativeText($text)

from eZImageInterface
alternativeText()

from eZImageInterface
loadPNG($storedPath, $storedFile)

from eZImageInterface
loadJPEG($storedPath, $storedFile)

from eZImageInterface
loadGIF($storedPath, $storedFile)

from eZImageInterface
load()

from eZImageInterface
destroy()

from eZImageInterface
imageObject($createMissing = true)

from eZImageInterface
imageObjectInternal($createMissing = true)

from eZImageInterface
process()

from eZImageInterface
processImage()

from eZImageInterface
store($fileName, $filePath, $type)

from eZImageInterface
create($width, $height, $useTruecolor = null)

from eZImageInterface
__clone()

from eZImageInterface
cloneImage($imageObject, $width, $height, $useTruecolor = null)

from eZImageInterface
width()

from eZImageInterface
height()

from eZImageInterface
setWidth($w)

from eZImageInterface
setHeight($h)

from eZImageInterface
setStoredFile($file, $path, $type)

from eZImageInterface
setFont($font)

from eZImageInterface
font()

from eZImageInterface
copyImage($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX, $sourceY)

from eZImageInterface
mergeImage($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX, $sourceY, $transparency)

from eZImageInterface
blendImage($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX, $sourceY)

from eZImageInterface
merge($imageObject, $x, $y, $width, $height)

from eZImageInterface
clear($color = false)

from eZImageInterface
allocateColor($name, $red, $green, $blue)

from eZImageInterface
color($name)

from eZImageInterface
textColor()

from eZImageInterface
setTextColor($textColor)

from eZImageInterface
drawText($font, $textColor, $text, $x, $y, $angle, $imageObject = null)

from eZImageInterface
templateData()

setTemplateURI($uri)

mergeLayer($image, $layerData, $lastLayerData)

Details

at line 20
public __construct(string $imageObjectRef = null, eZContentObject $imageObject = null, int|bool $width = false, int|bool $height = false, $font = false)

Constructor

Parameters

string $imageObjectRef
eZContentObject $imageObject
int|bool $width
int|bool $height
$font

in eZImageInterface at line 48
public isTruecolor()

in eZImageInterface at line 58
public attributeMemberMap()

in eZImageInterface at line 72
public attributeFunctionMap()

in eZImageInterface at line 81
public attributes()

in eZImageInterface at line 90
public hasAttribute($name)

Parameters

$name

in eZImageInterface at line 104
public attribute($name)

Parameters

$name

in eZImageInterface at line 132
public isProcessed()

in eZImageInterface at line 140
public hasSize()

in eZImageInterface at line 149
public imagePath()

in eZImageInterface at line 159
public setAlternativeText($text)

Parameters

$text

in eZImageInterface at line 168
public alternativeText()

in eZImageInterface at line 228
public loadPNG($storedPath, $storedFile)

Parameters

$storedPath
$storedFile

in eZImageInterface at line 246
public loadJPEG($storedPath, $storedFile)

Parameters

$storedPath
$storedFile

in eZImageInterface at line 262
public loadGIF($storedPath, $storedFile)

Parameters

$storedPath
$storedFile

in eZImageInterface at line 280
public load()

in eZImageInterface at line 319
public destroy()

in eZImageInterface at line 337
public imageObject($createMissing = true)

Parameters

$createMissing

in eZImageInterface at line 359
public imageObjectInternal($createMissing = true)

Parameters

$createMissing

in eZImageInterface at line 374
public process()

in eZImageInterface at line 386
public processImage()

in eZImageInterface at line 416
public store($fileName, $filePath, $type)

Parameters

$fileName
$filePath
$type

in eZImageInterface at line 509
public create($width, $height, $useTruecolor = null)

Parameters

$width
$height
$useTruecolor

in eZImageInterface at line 528
public __clone()

in eZImageInterface at line 538
public cloneImage($imageObject, $width, $height, $useTruecolor = null)

Parameters

$imageObject
$width
$height
$useTruecolor

in eZImageInterface at line 554
public width()

in eZImageInterface at line 562
public height()

in eZImageInterface at line 570
public setWidth($w)

Parameters

$w

in eZImageInterface at line 578
public setHeight($h)

Parameters

$h

in eZImageInterface at line 587
public setStoredFile($file, $path, $type)

Parameters

$file
$path
$type

in eZImageInterface at line 597
public setFont($font)

Parameters

$font

in eZImageInterface at line 605
public font()

in eZImageInterface at line 615
public copyImage($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX, $sourceY)

Parameters

$destinationImageObject
$imageObject
$destinationX
$destinationY
$sourceWidth
$sourceHeight
$sourceX
$sourceY

in eZImageInterface at line 632
public mergeImage($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX, $sourceY, $transparency)

Parameters

$destinationImageObject
$imageObject
$destinationX
$destinationY
$sourceWidth
$sourceHeight
$sourceX
$sourceY
$transparency

in eZImageInterface at line 650
public blendImage($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX, $sourceY)

Parameters

$destinationImageObject
$imageObject
$destinationX
$destinationY
$sourceWidth
$sourceHeight
$sourceX
$sourceY

in eZImageInterface at line 660
public merge($imageObject, $x, $y, $width, $height)

Parameters

$imageObject
$x
$y
$width
$height

in eZImageInterface at line 675
public clear($color = false)

Parameters

$color

in eZImageInterface at line 693
public allocateColor($name, $red, $green, $blue)

Parameters

$name
$red
$green
$blue

in eZImageInterface at line 712
public color($name)

Parameters

$name

in eZImageInterface at line 725
public textColor()

in eZImageInterface at line 733
public setTextColor($textColor)

Parameters

$textColor

in eZImageInterface at line 744
public drawText($font, $textColor, $text, $x, $y, $angle, $imageObject = null)

Parameters

$font
$textColor
$text
$x
$y
$angle
$imageObject

at line 32
public templateData()

at line 42
public setTemplateURI($uri)

Parameters

$uri

at line 52
public mergeLayer($image, $layerData, $lastLayerData)

Parameters

$image
$layerData
$lastLayerData