Bitrix API

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_RIGHT

public mixed ALIGN_RIGHT = "right"

SIZE_MEDIUM

public mixed SIZE_MEDIUM = "medium"

SIZE_SMALL

public mixed SIZE_SMALL = "small"

Methods

alignPosition()

public alignPosition(int $width, int $height, Rectangle $position) : mixed
Parameters
$width : int
$height : int
$position : Rectangle

getHorizontalAlignment()

public getHorizontalAlignment() : string
Return values
string

getPadding()

public getPadding() : int
Return values
int

getRatio()

public getRatio() : float
Return values
float

getVerticalAlignment()

public getVerticalAlignment() : string
Return values
string

setAlignment()

public setAlignment(string $hAlign, string $vAlign) : $this
Parameters
$hAlign : string

ALIGN_* constants

$vAlign : string

ALIGN_* constants

Return values
$this

        
On this page

Search results