<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Control the brightness, saturation, and hue</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="gmagick.minifyimage.html">Gmagick::minifyimage</a></div> <div class="next" style="text-align: right; float: right;"><a href="gmagick.motionblurimage.html">Gmagick::motionblurimage</a></div> <div class="up"><a href="class.gmagick.html">Gmagick</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="gmagick.modulateimage" class="refentry"> <div class="refnamediv"> <h1 class="refname">Gmagick::modulateimage</h1> <p class="verinfo">(PECL gmagick >= Unknown)</p><p class="refpurpose"><span class="refname">Gmagick::modulateimage</span> — <span class="dc-title">Control the brightness, saturation, and hue</span></p> </div> <div class="refsect1 description" id="refsect1-gmagick.modulateimage-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>Gmagick::modulateimage</strong></span> ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$brightness</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$saturation</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$hue</code></span> )</div> <p class="para rdfs-comment"> 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. </p> </div> <div class="refsect1 parameters" id="refsect1-gmagick.modulateimage-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">brightness</code></em></span> <dd> <p class="para"> The percent change in brighness (-100 thru +100). </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">saturation</code></em></span> <dd> <p class="para"> The percent change in saturation (-100 thru +100) </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">hue</code></em></span> <dd> <p class="para"> The percent change in hue (-100 thru +100) </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-gmagick.modulateimage-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> The Gmagick object on success </p> </div> <div class="refsect1 errors" id="refsect1-gmagick.modulateimage-errors"> <h3 class="title">Errors/Exceptions</h3> <p class="para"> Throws an <strong class="classname">GmagickException</strong> on error. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="gmagick.minifyimage.html">Gmagick::minifyimage</a></div> <div class="next" style="text-align: right; float: right;"><a href="gmagick.motionblurimage.html">Gmagick::motionblurimage</a></div> <div class="up"><a href="class.gmagick.html">Gmagick</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>