2016-12-15 9 views
0

は、私のコードのsnippitです:エラークラスImagePixelが見つからないのはなぜですか?ここ

//$page defined above 

$opening_border = new ImagickDraw(); 
$opening_border->setFillColor('none'); 
$opening_border->setstrokecolor(new ImagePixel('#000000')); 
$opening_border->setstrokewidth(10); 
$opening_border->setstrokeantialias(FALSE); 
$opening_border->rectangle($left_px, $top_px, $width_px, $height_px); 
$opening_img->drawimage($opening_border); 

$page->compositeImage($opening_img, Imagick::COMPOSITE_DEFAULT, $left_px, $top_px); 

これは私が取得していますエラーです:

Fatal error: Class 'ImagePixel' not found in /data/www-test/content/sites/all/modules/tf_modules/tf_fulfill/tf_fulfill_pdf_generate.php on line 333 

この私のPHP情報の一部である

PHP info - imagick

+3

「ImagickPixel ' –

答えて

3

ImagickPixelがあります正しい名前

+0

はい、そうです。ありがとうございました。そして今、それはうまく動いています... – AllisonC

関連する問題