<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.imagickpixel.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'imagickpixel.gethsl.php',
    1 => 'ImagickPixel::getHSL',
    2 => 'ImagickPixel オブジェクトの HSL カラーを正規化したものを返す',
  ),
  'up' => 
  array (
    0 => 'class.imagickpixel.php',
    1 => 'ImagickPixel',
  ),
  'prev' => 
  array (
    0 => 'imagickpixel.getcolorvaluequantum.php',
    1 => 'ImagickPixel::getColorValueQuantum',
  ),
  'next' => 
  array (
    0 => 'imagickpixel.getindex.php',
    1 => 'ImagickPixel::getIndex',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/imagick/imagickpixel/gethsl.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagickpixel.gethsl" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ImagickPixel::getHSL</h1>
  <p class="verinfo">(PECL imagick 2, PECL imagick 3)</p><p class="refpurpose"><span class="refname">ImagickPixel::getHSL</span> &mdash; <span class="dc-title">ImagickPixel オブジェクトの HSL カラーを正規化したものを返す</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagickpixel.gethsl-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ImagickPixel::getHSL</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   ImagickPixel オブジェクトの HSL カラーを正規化したものを返します。
   3 つの値は、それぞれ 0.0 から 1.0 までの間の浮動小数点数値となります。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagickpixel.gethsl-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-imagickpixel.gethsl-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   HSL の値をそれぞれ &quot;hue&quot;、
   &quot;saturation&quot;、そして &quot;luminosity&quot; というキーに保持する配列を返します。
   失敗した場合に ImagickPixelException をスローします。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-imagickpixel.gethsl-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 基本的な <span class="function"><strong>Imagick::getHSL()</strong></span> の使用例</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$color </span><span style="color: #007700">= new </span><span style="color: #0000BB">ImagickPixel</span><span style="color: #007700">(</span><span style="color: #DD0000">'rgb(90%, 10%, 10%)'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$colorInfo </span><span style="color: #007700">= </span><span style="color: #0000BB">$color</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getHSL</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$colorInfo</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>上の例の出力は以下となります。</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [hue] =&gt; 0
    [saturation] =&gt; 0.80001220740379
    [luminosity] =&gt; 0.50000762951095
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-imagickpixel.gethsl-notes">
  <h3 class="title">注意</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    ImageMagick ライブラリバージョン 6.2.9 以降で使用可能です。
   </p>
  </p></blockquote>
 </div>


</div><?php manual_footer($setup); ?>