DJ Mike's Tutorials: PHP

Imagemagick Functions


^

Imagick::setImageOpacity

Description:
bool Imagick::setImageOpacity ( float $opacity )

Sets the image to the specified opacity level. This method is present if Imagick is compiled against ImageMagick 6.3.1 or later.
Parameters
opacity
The level of transparency: 1.0 is fully opaque and 0.0 is fully transparent.
Return Values
Returns TRUE on success.

Example


<?php
$image 
= new Imagick("logo.png");
$image->setImageOpacity(.5);
header"Content-Type: image/png" );
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>