Class \avadim\FastExcelWriter\Style\ImageStyle
On this page
- __construct() – ImageStyle constructor
- height() – Set height of image
- hyperlink() – Set URL of hyperlink
- offset() – Set offset in pixels relative to the left and top borders of the cell
- set() – Set style options from array
- toArray() – Return style options as array
- width() – Set width of image
__construct()
public function __construct(array $options = [])
ImageStyle constructor
Parameters
array $options
height()
public function height($height): ImageStyle
Set height of image
Parameters
int|float $height
hyperlink()
public function hyperlink(string $hyperlink): ImageStyle
Set URL of hyperlink
Parameters
string $hyperlink
offset()
public function offset($x, $y): ImageStyle
Set offset in pixels relative to the left and top borders of the cell
Parameters
int|float $xint|float $y
set()
public function set(array $options): ImageStyle
Set style options from array
Parameters
array $options
toArray()
public function toArray(): array
Return style options as array
Parameters
None
width()
public function width($width): ImageStyle
Set width of image
Parameters
int|float $width