Skip to content

Class \avadim\FastExcelWriter\Style\ImageStyle


  • __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


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 $x
  • int|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