开发者

What units should the height and width be for a PHPExcel_Worksheet_Drawing_Object?

开发者 https://www.devze.com 2023-02-25 11:50 出处:网络
I\'m generating an Excel file in PHP using the PHPExcel library. I am placing an image in the worksheet.

I'm generating an Excel file in PHP using the PHPExcel library. I am placing an image in the worksheet.

$objDrawing->setWidthAndHeight(100,100);

What are the dimenions 开发者_StackOverflow中文版of the height and width of the drawing object (is it %, pixels, mm, cm)?

Appreciate the help.


It's point.

1 point = 1/72 inches.
1 inch = 72 points
1 point = 0.035 centimeters ( or .35 millimeters )


Without checking, I believe that it's pixels, with an assumption of 72dpi when converting to Excel's rather quirky internal units.

0

精彩评论

暂无评论...
验证码 换一张
取 消