1

I am creating my image like this:

$image1 = Zend_Pdf_Image::imageWithPath($path);

Now, when I debug, I see _width and _height, but I cant access them using

$image1->_width;

because its protected. How do I get those values?

Thanks!

4

1 回答 1

5

尝试

$image1->getPixelWidth();
$image1->getPixelHeight();
于 2012-02-22T12:06:54.213 回答