PHP Doku:: Sets the page geometry of the image - function.imagick-setimagepage.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzBildverarbeitung und -generierungImage Processing (ImageMagick)The Imagick classImagick::setImagePage

Ein Service von Reinhard Neidl - Webprogrammierung.

The Imagick class

<<Imagick::setImageOrientation

Imagick::setImageProfile>>

Imagick::setImagePage

(PECL imagick 2.0.0)

Imagick::setImagePageSets the page geometry of the image

Beschreibung

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

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.

Sets the page geometry of the image.

Parameter-Liste

width

height

x

y

Rückgabewerte

Liefert TRUE bei Erfolg.

Fehler/Exceptions

Wirft ImagickException bei Fehlern.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
Darren Burnhill
19.05.2009 14: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);
?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)