Bitrix API

ImageWatermark extends Watermark

Table of Contents

Constants

ALIGN_BOTTOM  = "bottom"
ALIGN_CENTER  = "center"
ALIGN_LEFT  = "left"
ALIGN_RIGHT  = "right"
ALIGN_TOP  = "top"
MODE_EXACT  = 'exact'
MODE_REPEAT  = 'repeat'
MODE_RESIZE  = 'resize'
SIZE_BIG  = "big"
SIZE_MEDIUM  = "medium"
SIZE_REAL  = "real"
SIZE_SMALL  = "small"

Methods

__construct()  : mixed
ImageWatermark constructor.
alignPosition()  : mixed
getAlpha()  : float
getHorizontalAlignment()  : string
getImageFile()  : string|null
getMode()  : string
getPadding()  : int
getRatio()  : float
getVerticalAlignment()  : string
setAlignment()  : $this
setAlpha()  : ImageWatermark
setImageFile()  : ImageWatermark
setMode()  : ImageWatermark
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

__construct()

ImageWatermark constructor.

public __construct([string|null $imageFile = null ]) : mixed
Parameters
$imageFile : string|null = null

Path to a watermark image.

alignPosition()

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

getHorizontalAlignment()

public getHorizontalAlignment() : string
Return values
string

getImageFile()

public getImageFile() : string|null
Return values
string|null

getPadding()

public getPadding() : int
Return values
int

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