PHPRtfLite_Table::addImageToCell PHP Méthode

addImageToCell() public méthode

adds image to cell
public addImageToCell ( integer $rowIndex, integer $columnIndex, string $file, PHPRtfLite_ParFormat $parFormat = null, float $width = null, float $height = null ) : PHPRtfLite_Image
$rowIndex integer row index of cell
$columnIndex integer column index of cell
$file string image file.
$parFormat PHPRtfLite_ParFormat paragraph format
$width float if null image is displayed by it's original height.
$height float if null image is displayed by it's original width. If boths parameters are null, image is displayed as it is.
Résultat PHPRtfLite_Image
    public function addImageToCell($rowIndex, $columnIndex, $file, PHPRtfLite_ParFormat $parFormat = null, $width = null, $height = null)
    {
        $cell = $this->getCell($rowIndex, $columnIndex);
        return $cell->addImage($file, $parFormat, $width, $height);
    }