PHPRtfLite_Image::__construct PHP Méthode

__construct() public méthode

constructor
public __construct ( PHPRtfLite $rtf, resource $stream, float $width = null, float $height = null )
$rtf PHPRtfLite
$stream resource
$width float optional
$height float optional
    public function __construct(PHPRtfLite $rtf, $stream, $width = null, $height = null)
    {
        $this->_rtf = $rtf;
        $this->_stream = $stream;
        $this->_width = $width;
        $this->_height = $height;
    }

Usage Example

Exemple #1
0
 /**
  * constructor
  *
  * @param PHPRtfLite    $rtf
  * @param resource      $stream
  * @param float         $width  optional
  * @param float         $height optional
  */
 public function __construct(PHPRtfLite $rtf, $stream, $width = null, $height = null)
 {
     parent::__construct($rtf, $stream, $width, $height);
     $this->_imageRtfType = '\\wmetafile8';
     $this->setImageDimension();
 }