Class

eZImageObject

class eZImageObject extends eZImageInterface

Constants

ALIGN_AXIS_NONE

ALIGN_AXIS_START

ALIGN_AXIS_STOP

ALIGN_AXIS_CENTER

ALIGN_AXIS_MASK

PLACE_CONSTANT

PLACE_RELATIVE

Properties

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

Methods

__construct(string $imageObjectRef = null, eZContentObject $imageObject = null, int|bool $width = false, int|bool $height = 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()

imageObject($createMissing = true)

from eZImageInterface
imageObjectInternal($createMissing = true)

from eZImageInterface
process()

from eZImageInterface
processImage()

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)

calculateAxisPlacement($value, $type, $alignment, $axisStart, $axisStop, $currentLength)

initializeAxis($parameters, $name)

calculatePosition($parameters, $width, $height)

getTransparency($parameters)

getTransparencyPercent($parameters)

appendLayer($imageLayer, $parameters = array())

prependLayer($imageLayer, $parameters = array())

hasLayer($layerID)

removeLayer($layerID)

flatten()

Details

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

Constructor

Parameters

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

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

at line 210
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()

at line 250
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 47
public templateData()

at line 57
public setTemplateURI($uri)

Parameters

$uri

at line 73
public calculateAxisPlacement($value, $type, $alignment, $axisStart, $axisStop, $currentLength)

Parameters

$value
$type
$alignment
$axisStart
$axisStop
$currentLength

at line 104
public initializeAxis($parameters, $name)

Parameters

$parameters
$name

at line 123
public calculatePosition($parameters, $width, $height)

Parameters

$parameters
$width
$height

at line 138
public getTransparency($parameters)

Parameters

$parameters

at line 151
public getTransparencyPercent($parameters)

Parameters

$parameters

at line 162
public appendLayer($imageLayer, $parameters = array())

Parameters

$imageLayer
$parameters

at line 182
public prependLayer($imageLayer, $parameters = array())

Parameters

$imageLayer
$parameters

at line 201
public hasLayer($layerID)

Parameters

$layerID

at line 230
public removeLayer($layerID)

Parameters

$layerID

at line 260
public flatten()