Bitrix API

Info

Table of Contents

Methods

getAttributes()  : string
getFormat()  : int
getHeight()  : int
getMime()  : string
getWidth()  : int
isSupported()  : bool
Returns true for known image formats.
setFormat()  : Info
setHeight()  : Info
setMime()  : Info
setWidth()  : Info
swapSides()  : Info
Swaps width and height.
toRectangle()  : Rectangle
Returns width and height in the Rectangle object.

Methods

getAttributes()

public getAttributes() : string
Return values
string

getFormat()

public getFormat() : int
Return values
int

getHeight()

public getHeight() : int
Return values
int

getMime()

public getMime() : string
Return values
string

getWidth()

public getWidth() : int
Return values
int

isSupported()

Returns true for known image formats.

public isSupported() : bool
Return values
bool

setFormat()

public setFormat(int $format) : Info
Parameters
$format : int
Return values
Info

setHeight()

public setHeight(int $height) : Info
Parameters
$height : int
Return values
Info

setMime()

public setMime(string $mime) : Info
Parameters
$mime : string
Return values
Info

setWidth()

public setWidth(int $width) : Info
Parameters
$width : int
Return values
Info

swapSides()

Swaps width and height.

public swapSides() : Info
Return values
Info

toRectangle()

Returns width and height in the Rectangle object.

public toRectangle() : Rectangle
Return values
Rectangle

        
On this page

Search results