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
stringgetFormat()
public
getFormat() : int
Return values
intgetHeight()
public
getHeight() : int
Return values
intgetMime()
public
getMime() : string
Return values
stringgetWidth()
public
getWidth() : int
Return values
intisSupported()
Returns true for known image formats.
public
isSupported() : bool
Return values
boolsetFormat()
public
setFormat(int $format) : Info
Parameters
- $format : int
Return values
InfosetHeight()
public
setHeight(int $height) : Info
Parameters
- $height : int
Return values
InfosetMime()
public
setMime(string $mime) : Info
Parameters
- $mime : string
Return values
InfosetWidth()
public
setWidth(int $width) : Info
Parameters
- $width : int
Return values
InfoswapSides()
Swaps width and height.
public
swapSides() : Info
Return values
InfotoRectangle()
Returns width and height in the Rectangle object.
public
toRectangle() : Rectangle