Watermark
Table of Contents
Constants
- ALIGN_BOTTOM = "bottom"
- ALIGN_CENTER = "center"
- ALIGN_LEFT = "left"
- ALIGN_RIGHT = "right"
- ALIGN_TOP = "top"
- SIZE_BIG = "big"
- SIZE_MEDIUM = "medium"
- SIZE_SMALL = "small"
Methods
- __construct() : mixed
- alignPosition() : mixed
- getHorizontalAlignment() : string
- getPadding() : int
- getRatio() : float
- getVerticalAlignment() : string
- setAlignment() : $this
- setPadding() : Watermark
- setRatio() : Watermark
- setSize() : Watermark
Constants
ALIGN_BOTTOM
public
mixed
ALIGN_BOTTOM
= "bottom"
ALIGN_CENTER
public
mixed
ALIGN_CENTER
= "center"
ALIGN_LEFT
public
mixed
ALIGN_LEFT
= "left"
ALIGN_RIGHT
public
mixed
ALIGN_RIGHT
= "right"
ALIGN_TOP
public
mixed
ALIGN_TOP
= "top"
SIZE_BIG
public
mixed
SIZE_BIG
= "big"
SIZE_MEDIUM
public
mixed
SIZE_MEDIUM
= "medium"
SIZE_SMALL
public
mixed
SIZE_SMALL
= "small"
Methods
__construct()
public
__construct() : mixed
alignPosition()
public
alignPosition(int $width, int $height, Rectangle $position) : mixed
Parameters
- $width : int
- $height : int
- $position : Rectangle
getHorizontalAlignment()
public
getHorizontalAlignment() : string
Return values
stringgetPadding()
public
getPadding() : int
Return values
intgetRatio()
public
getRatio() : float
Return values
floatgetVerticalAlignment()
public
getVerticalAlignment() : string
Return values
stringsetAlignment()
public
setAlignment(string $hAlign, string $vAlign) : $this
Parameters
- $hAlign : string
-
ALIGN_* constants
- $vAlign : string
-
ALIGN_* constants
Return values
$thissetPadding()
public
setPadding(int $padding) : Watermark
Parameters
- $padding : int
Return values
WatermarksetRatio()
public
setRatio(float $ratio) : Watermark
Parameters
- $ratio : float
Return values
WatermarksetSize()
public
setSize(string $size) : Watermark
Parameters
- $size : string
-
SIZE_* constants