PHPRtfLite_Image::createMissingImage PHP Méthode

createMissingImage() private static méthode

creates a missing image instance
private static createMissingImage ( PHPRtfLite $rtf, float $width, float $height ) : PHPRtfLite_Image_Gd
$rtf PHPRtfLite
$width float
$height float
Résultat PHPRtfLite_Image_Gd
    private static function createMissingImage($rtf, $width, $height)
    {
        $stream = fopen('data://text/plain;base64,' . self::getMissingImage(), 'rb');
        $image = new PHPRtfLite_Image_Gd($rtf, $stream, $width, $height);
        $image->setImageType(self::TYPE_PNG);
        $image->setIsMissing();
        return $image;
    }