Imagick::setImagePage

(PECL imagick 2.0.0)

Imagick::setImagePageSets the page geometry of the image

Описание

bool Imagick::setImagePage ( int $width , int $height , int $x , int $y )

Sets the page geometry of the image.

Список параметров

width

height

x

y

Возвращаемые значения

В случае успешной работы возвращает TRUE.

Ошибки

Вызывает ImagickException при ошибке.

Коментарии

Автор:
This would appear to be the equivalent of +repage in ImageMagick.

<?php
  $ImagickObj 
= new Imagick($sourceImagePath);
 
$ImagickObj->cropImage($_POST['w'], $_POST['h'], $_POST['x'], $_POST['y']);
 
$ImagickObj->setImagePage($_POST['w'], $_POST['h'], 00);
 
$ImagickObj->writeImage($cropFilePath);
?>
2009-05-19 08:03:26
http://php5.kiev.ua/manual/ru/imagick.setimagepage.html

    Поддержать сайт на родительском проекте КГБ