DJ Mike's Tutorials: PHP

Imagick Functions

^

Imagick::modulateImage

Description:
bool Imagick::modulateImage ( float $brightness , float $saturation , float $hue )

Lets you control the brightness, saturation, and hue of an image. Hue is the percentage of absolute rotation from the current position. For example 50 results in a counter-clockwise rotation of 90 degrees, 150 results in a clockwise rotation of 90 degrees, with 0 and 200 both resulting in a rotation of 180 degrees.
Parameters:
brightness
saturation
hue
Return Values
Returns TRUE on success.

Example



<?php
header
("Content-type: image/jpeg");
$image = new Imagick("opossum.jpg"); 
$image->modulateImage(100,60,80);
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>