男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站

Imagick::getSize

(PECL imagick 2, PECL imagick 3)

Imagick::getSizeReturns the size associated with the Imagick object

說(shuō)明

public Imagick::getSize(): array

Get the size in pixels associated with the Imagick object, previously set by Imagick::setSize().

注意:

This method just returns the size that was set using Imagick::setSize(). If you want to get the actual width / height of the image, use Imagick::getImageWidth() and Imagick::getImageHeight().

參數

此函數沒(méi)有參數。

返回值

Returns the size associated with the Imagick object as an array with the keys "columns" and "rows".

范例

示例 #1 Getting the size of a raw RGB image set at 200x400, after scaling to 400x800 (compared to width / height)

<?php
//Set size first and then load the raw image
$img = new Imagick();
$img->setSize(200400);
$img->readImage("image.rgb");

$img->scaleImage(400800);

$size $img->getSize();
print_r($size);

echo 
$img->getImageWidth()."x".$img->getImageHeight();
?>

以上例程會(huì )輸出:

Array
(
    [columns] => 200
    [rows] => 400
)
400x800

男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站