downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Imagick::setImageProfile> <Imagick::setImageOrientation
[edit] Last updated: Fri, 25 May 2012

view this page in

Imagick::setImagePage

(PECL imagick 2.0.0)

Imagick::setImagePage画像のページのジオメトリを設定する

説明

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

画像のページのジオメトリを設定します。

パラメータ

width

height

x

y

返り値

成功した場合に TRUE を返します。

エラー / 例外

エラー時に ImagickException をスローします。



add a note add a note User Contributed Notes Imagick::setImagePage
Darren Burnhill 18-May-2009 11:03
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'], 0, 0);
 
$ImagickObj->writeImage($cropFilePath);
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites