class ImageTransform

Класс обработки картинок

Constants

PREFIX

ENCODE_PREFIX

FIT_NONE

FIT_CROP

FIT_CROP_CENTER

FIT_CONTAIN_CENTER

WM_EXACT

WM_STRETCH

WM_FIT

WM_CONTAIN

WM_TILE

Methods

__construct($src = null)

No description

static 
create($src = null)

No description

setBgcolor($c)

No description

setWidth($width)

No description

setHeight($height)

No description

setQuality($quality)

No description

setEnlarge($value)

No description

setAspect($value)

No description

setFit($value)

No description

setDefault($value)

No description

setText($text, $params = null)

No description

addText($text, $params = null)

No description

setWatermark($src, $params = null)

No description

addWatermark($src, $params = null)

No description

save($dst = null)

No description

display()

No description

getImage()

No description

getWidth()

No description

getHeight()

No description

static 
image($src, $dst, $width, $height, $quality = 75, $dontenlarge, $aspect = 1, $fit, $face)

No description

static 
transformFromURI()

No description

static 
imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct)

No description

static 
encode($path)

No description

Details

at line 54
__construct($src = null)

Parameters

$src

at line 60
static create($src = null)

Parameters

$src

at line 65
setBgcolor($c)

Parameters

$c

at line 72
setWidth($width)

Parameters

$width

at line 79
setHeight($height)

Parameters

$height

at line 86
setQuality($quality)

Parameters

$quality

at line 95
setEnlarge($value)

Parameters

$value

at line 102
setAspect($value)

Parameters

$value

at line 109
setFit($value)

Parameters

$value

at line 116
setDefault($value)

Parameters

$value

at line 123
setText($text, $params = null)

Parameters

$text
$params

at line 129
addText($text, $params = null)

Parameters

$text
$params

at line 152
setWatermark($src, $params = null)

Parameters

$src
$params

at line 158
addWatermark($src, $params = null)

Parameters

$src
$params

at line 516
save($dst = null)

Parameters

$dst

at line 541
display()

at line 547
getImage()

at line 553
getWidth()

at line 559
getHeight()

at line 568
static image($src, $dst, $width, $height, $quality = 75, $dontenlarge, $aspect = 1, $fit, $face)

Parameters

$src
$dst
$width
$height
$quality
$dontenlarge
$aspect
$fit
$face

at line 580
static transformFromURI()

at line 657
static imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct)

Parameters

$dst_im
$src_im
$dst_x
$dst_y
$src_x
$src_y
$src_w
$src_h
$pct

at line 671
static encode($path)

Parameters

$path