PHPRtfLite_Table::addImageFromStringToCell PHP Méthode

addImageFromStringToCell() public méthode

adds image to cell
public addImageFromStringToCell ( integer $rowIndex, integer $columnIndex, string $imageString, string $type, PHPRtfLite_ParFormat $parFormat = null, float $width = null, float $height = null ) : PHPRtfLite_Image
$rowIndex integer row index of cell
$columnIndex integer column index of cell
$imageString string image source code
$type string image type (GD, WMF)
$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 addImageFromStringToCell($rowIndex, $columnIndex, $imageString, $type, PHPRtfLite_ParFormat $parFormat = null, $width = null, $height = null)
    {
        $cell = $this->getCell($rowIndex, $columnIndex);
        return $cell->addImageFromString($imageString, $type, $parFormat, $width, $height);
    }