DJ Mike's Tutorials: PHP

ImageMagick Functions

^

Imagick::frameImage

Description:
frameImage ( mixed $matte_color , int $width , int $height , int $inner_bevel , int $outer_bevel )

Adds a simulated three-dimensional border around the image. The width and height specify the border width of the vertical and horizontal sides of the frame. The inner and outer bevels indicate the width of the inner and outer shadows of the frame.
Parameters:
matte_color
ImagickPixel object or a string representing the matte color.
width
The width of the border
height
The height of the border.
inner_bevel
The inner bevel width.
outer_bevel
The outer bevel width
Return Values
Returns TRUE on success.

Example

<?php
header
("Content-type: image/jpeg");
$image = new Imagick("opossum.jpg"); 
$image->frameImage"#0000ff"10103);
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>