DJ Mike's Tutorials: PHP

Imagick Functions

^

Imagick::raiseImage

Description:
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.

Note: This does not work like ImageMagick. If width and height are not equal, the planes of the bevels will not intersect the way they should. x and y have no effect.
Parameters:
width
Width of side bevels
height
Height of top and bottom bevels
x
Does nothing
y
Does nothing
raise
If TRUE the bevels look raised. If FALSE the bevels look sunken
Return Values
Returns TRUE on success.

Example




<?php
header
("Content-type: image/jpeg");
$image = new Imagick("opossum.jpg"); 
$image->raiseImage1010140100TRUE);
echo 
$image;
?> 


<?php
header
("Content-type: image/jpeg");
$image = new Imagick("opossum.jpg"); 
$image->raiseImage1010140140false);
echo 
$image;
?> 


^


Created by DJ Mike from Santa Barbara

DJ Mike


Dance Away Santa Barbara's Home Page
<a href="http://www.statcounter.com/" target="_blank"> <img src="http://c5.statcounter.com/counter.php?sc_project=1321035&java=0&security=da2193dc" alt="counter free hit invisible" border="0" /></a>