Imagick::rollImage

(PECL imagick 2.0.0)
Offsets an image
bool Imagick::rollImage ( int $x, int $y )

Offsets an image as defined by x and y.

Parameters:
x

The X offset.

y

The Y offset.

Returns:

Returns TRUE on success.

Examples:
Imagick::rollImage()
<?php
function rollImage($imagePath, $rollX, $rollY) {
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->rollimage($rollX, $rollY);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}

?>

doc_php
2016-02-24 16:01:17
Comments
Leave a Comment

Please login to continue.