2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 07:40:16 +00:00
|
|
|
<!-- $Revision$ -->
|
2012-01-12 05:08:38 +00:00
|
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagickpixel.gethsl">
|
2007-06-05 02:41:01 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>ImagickPixel::getHSL</refname>
|
|
|
|
<refpurpose>Returns the normalized HSL color of the ImagickPixel object</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2008-01-01 14:55:27 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>array</type><methodname>ImagickPixel::getHSL</methodname>
|
|
|
|
<void/>
|
|
|
|
</methodsynopsis>
|
2007-06-05 02:41:01 +00:00
|
|
|
<para>
|
|
|
|
Returns the normalized HSL color described by the ImagickPixel object,
|
|
|
|
with each of the three values as floating point numbers between 0.0
|
|
|
|
and 1.0.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns the HSL value in an array with the keys "hue",
|
|
|
|
"saturation", and "luminosity". Throws ImagickPixelException on failure.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2013-10-22 11:10:15 +00:00
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title>Basic <function>Imagick::getHSL</function> example</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$color = new ImagickPixel('rgb(90%, 10%, 10%)');
|
|
|
|
|
|
|
|
$colorInfo = $color->getHSL();
|
|
|
|
|
|
|
|
print_r($colorInfo);
|
|
|
|
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
&example.outputs;
|
|
|
|
<screen>
|
|
|
|
<![CDATA[
|
|
|
|
Array
|
|
|
|
(
|
|
|
|
[hue] => 0
|
|
|
|
[saturation] => 0.80001220740379
|
|
|
|
[luminosity] => 0.50000762951095
|
|
|
|
)
|
|
|
|
]]>
|
|
|
|
</screen>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2009-11-16 11:56:47 +00:00
|
|
|
<refsect1 role="notes">
|
|
|
|
&reftitle.notes;
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
Available with ImageMagick library version 6.2.9 and higher.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
</refsect1>
|
|
|
|
|
2007-06-05 02:41:01 +00:00
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2007-06-05 02:41:01 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|