Class

eZImageInterface

class eZImageInterface

Properties

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

Methods

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

Constructor

isTruecolor()

attributeMemberMap()

attributeFunctionMap()

attributes()

hasAttribute($name)

attribute($name)

isProcessed()

hasSize()

imagePath()

setAlternativeText($text)

alternativeText()

loadPNG($storedPath, $storedFile)

loadJPEG($storedPath, $storedFile)

loadGIF($storedPath, $storedFile)

load()

destroy()

imageObject($createMissing = true)

imageObjectInternal($createMissing = true)

process()

processImage()

store($fileName, $filePath, $type)

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

__clone()

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

width()

height()

setWidth($w)

setHeight($h)

setStoredFile($file, $path, $type)

setFont($font)

font()

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

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

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

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

clear($color = false)

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

color($name)

textColor()

setTextColor($textColor)

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

Details

at line 29
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

at line 48
public isTruecolor()

at line 58
public attributeMemberMap()

at line 72
public attributeFunctionMap()

at line 81
public attributes()

at line 90
public hasAttribute($name)

Parameters

$name

at line 104
public attribute($name)

Parameters

$name

at line 132
public isProcessed()

at line 140
public hasSize()

at line 149
public imagePath()

at line 159
public setAlternativeText($text)

Parameters

$text

at line 168
public alternativeText()

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

Parameters

$storedPath
$storedFile

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

Parameters

$storedPath
$storedFile

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

Parameters

$storedPath
$storedFile

at line 280
public load()

at line 319
public destroy()

at line 337
public imageObject($createMissing = true)

Parameters

$createMissing

at line 359
public imageObjectInternal($createMissing = true)

Parameters

$createMissing

at line 374
public process()

at line 386
public processImage()

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

Parameters

$fileName
$filePath
$type

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

Parameters

$width
$height
$useTruecolor

at line 528
public __clone()

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

Parameters

$imageObject
$width
$height
$useTruecolor

at line 554
public width()

at line 562
public height()

at line 570
public setWidth($w)

Parameters

$w

at line 578
public setHeight($h)

Parameters

$h

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

Parameters

$file
$path
$type

at line 597
public setFont($font)

Parameters

$font

at line 605
public font()

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

Parameters

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

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

Parameters

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

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

Parameters

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

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

Parameters

$imageObject
$x
$y
$width
$height

at line 675
public clear($color = false)

Parameters

$color

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

Parameters

$name
$red
$green
$blue

at line 712
public color($name)

Parameters

$name

at line 725
public textColor()

at line 733
public setTextColor($textColor)

Parameters

$textColor

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

Parameters

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