<!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>The GmagickPixel class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="gmagickdraw.settextencoding.html">GmagickDraw::settextencoding</a></div> <div class="next" style="text-align: right; float: right;"><a href="gmagickpixel.construct.html">GmagickPixel::__construct</a></div> <div class="up"><a href="book.gmagick.html">Gmagick</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.gmagickpixel" class="reference"> <h1 class="title">The GmagickPixel class</h1> <div class="partintro"><p class="verinfo">(PECL gmagick >= Unknown)</p> <div class="section" id="gmagickpixel.intro"> <h2 class="title">Introduction</h2> <p class="para"> </p> </div> <div class="section" id="gmagickpixel.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <strong class="classname">GmagickPixel</strong> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="gmagickpixel.construct.html" class="methodname">__construct</a></span> ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$color</code></span> ] )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">mixed</span> <span class="methodname"><a href="gmagickpixel.getcolor.html" class="methodname">getcolor</a></span> ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$as_array</code></span> [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$normalize_array</code></span> ]] )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="gmagickpixel.getcolorcount.html" class="methodname">getcolorcount</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">float</span> <span class="methodname"><a href="gmagickpixel.getcolorvalue.html" class="methodname">getcolorvalue</a></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$color</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">GmagickPixel</span> <span class="methodname"><a href="gmagickpixel.setcolor.html" class="methodname">setcolor</a></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$color</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">GmagickPixel</span> <span class="methodname"><a href="gmagickpixel.setcolorvalue.html" class="methodname">setcolorvalue</a></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$color</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$value</code></span> )</div> }</div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="gmagickpixel.construct.html">GmagickPixel::__construct</a> — The GmagickPixel constructor</li><li><a href="gmagickpixel.getcolor.html">GmagickPixel::getcolor</a> — Returns the color</li><li><a href="gmagickpixel.getcolorcount.html">GmagickPixel::getcolorcount</a> — Returns the color count associated with this color</li><li><a href="gmagickpixel.getcolorvalue.html">GmagickPixel::getcolorvalue</a> — Gets the normalized value of the provided color channel</li><li><a href="gmagickpixel.setcolor.html">GmagickPixel::setcolor</a> — Sets the color</li><li><a href="gmagickpixel.setcolorvalue.html">GmagickPixel::setcolorvalue</a> — Sets the normalized value of one of the channels</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="gmagickdraw.settextencoding.html">GmagickDraw::settextencoding</a></div> <div class="next" style="text-align: right; float: right;"><a href="gmagickpixel.construct.html">GmagickPixel::__construct</a></div> <div class="up"><a href="book.gmagick.html">Gmagick</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>