Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 28560 программистов и 2760 роботов. Сейчас ищут 677 программистов ...
Imagick::raiseImage - Creates a simulated 3d button-like effect
Вернуться к: Imagick
Imagick::raiseImage
(PECL imagick 2.0.0)
Imagick::raiseImage — Creates a simulated 3d button-like effect
Описание
bool Imagick::raiseImage
( int
$width
, int $height
, int $x
, int $y
, bool $raise
)Creates a simulated three-dimensional button-like effect by lightening and darkening the edges of the image. Members width and height of raise_info define the width of the vertical and horizontal edge of the effect.
Список параметров
-
width -
-
height -
-
x -
-
y -
-
raise -
Возвращаемые значения
В случае успешной работы возвращает TRUE.
Примеры
Пример #1 Imagick::raiseImage()
<?php
function raiseImage($imagePath, $width, $height, $x, $y, $raise) {
$imagick = new \Imagick(realpath($imagePath));
//x and y do nothing?
$imagick->raiseImage($width, $height, $x, $y, $raise);
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>
Вернуться к: Imagick