PHPRtfLite_Image::createMissingImage PHP Method

createMissingImage() private static method

creates a missing image instance
private static createMissingImage ( PHPRtfLite $rtf, float $width, float $height ) : PHPRtfLite_Image_Gd
$rtf PHPRtfLite
$width float
$height float
return 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;
    }