Image
class Image implements IDrawing
Constants
BRANDING_TOP |
|
BRANDING_TOP_RIGHT |
|
BRANDING_RIGHT |
|
BRANDING_BOTTOM_RIGHT |
|
BRANDING_BOTTOM |
|
BRANDING_BOTTOM_LEFT |
|
BRANDING_LEFT |
|
BRANDING_TOP_LEFT |
|
BRANDING_CENTER |
|
Properties
protected | $_image | ||
protected | $_isResized | ||
protected | $_isBranded | ||
$name | |||
$path | |||
$extension | |||
$filepath | |||
$imageinfos | |||
$newWidth | |||
$newHeight | |||
$mainWidth | |||
$mainHeight | |||
$quality |
Methods
__construct($filepath)
No description
multitype:number
_calcWatermarkPosition(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $position, int $padding)
Calculates the Watermark position
multitype:number
_calcWatermarkOffset(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $percent = 30)
Calculates the Watermark offset
Details
at line 38
__construct($filepath)
at line 74
protected multitype:number
_calcWatermarkPosition(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $position, int $padding)
Calculates the Watermark position
at line 135
protected multitype:number
_calcWatermarkOffset(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $percent = 30)
Calculates the Watermark offset