class CKunenaImage


Located at : UKNOWVA_ROOT/components/com_kunena/lib/kunena.image.class.php

Class to manipulate an image.

Derived from JXtended JImage class Copyright (C) 2008 - 2009 JXtended, LLC. All rights reserved..

Constants

SCALE_FILL

Scale the image to fill.

SCALE_INSIDE

Scale the image based on its innermost dimensions.

SCALE_OUTSIDE

Scale the image based on its outermost dimensions.

Methods

void
__construct($source = null)

Constructor.

setError($errormsg)

No description

getError()

No description

getType()

No description

crop($width, $height, $left, $top, $createNew = true, $scaleMethod = CKunenaImage::SCALE_INSIDE)

No description

filter($type)

No description

getHeight()

No description

getWidth()

No description

isTransparent()

No description

loadFromFile($path)

No description

resize($width, $height, $createNew = true, $scaleMethod = CKunenaImage::SCALE_INSIDE)

No description

toFile($path, $type = null, $options = array())

No description

_prepareDimensions($width, $height, $scaleMethod)

No description

Details

at line 94
void __construct($source = null)

Constructor.

Parameters

$source

Return Value

void

at line 128
setError($errormsg)

Parameters

$errormsg

at line 132
getError()

at line 136
getType()

at line 140
crop($width, $height, $left, $top, $createNew = true, $scaleMethod = CKunenaImage::SCALE_INSIDE)

Parameters

$width
$height
$left
$top
$createNew
$scaleMethod

at line 232
filter($type)

Parameters

$type

at line 286
getHeight()

at line 291
getWidth()

at line 296
isTransparent()

at line 308
loadFromFile($path)

Parameters

$path

at line 398
resize($width, $height, $createNew = true, $scaleMethod = CKunenaImage::SCALE_INSIDE)

Parameters

$width
$height
$createNew
$scaleMethod

at line 481
toFile($path, $type = null, $options = array())

Parameters

$path
$type
$options

at line 501
_prepareDimensions($width, $height, $scaleMethod)

Parameters

$width
$height
$scaleMethod