mirror of
https://github.com/php/doc-es.git
synced 2026-03-27 17:02:16 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@336400 c90b9560-bf6c-de11-be94-00142212c4b1
110 lines
2.9 KiB
XML
110 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 18dc6d0d465c80989566e19e68e1a9ff43dca9cf Maintainer: seros Status: ready -->
|
|
<!-- Reviewed: no Maintainer: seros -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagick.modulateimage">
|
|
<refnamediv>
|
|
<refname>Imagick::modulateImage</refname>
|
|
<refpurpose>Controla el brillo, la saturación y el tono</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>Imagick::modulateImage</methodname>
|
|
<methodparam><type>float</type><parameter>brightness</parameter></methodparam>
|
|
<methodparam><type>float</type><parameter>saturation</parameter></methodparam>
|
|
<methodparam><type>float</type><parameter>hue</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Permite controlar el brillo, la saturación y el tono de una imagen. El tono
|
|
es el porcentaje de la rotación absoluta desde la posición actual. Por
|
|
ejemplo, 50 resulta en una rotación en el sentido contrario a las agujas del reloj
|
|
de 90 grados, 150 resulta en una rotación en el sentido de las agujas del reloj de
|
|
90 grados, con 0 y 200 resultando en una rotación de 180 grados.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>brightness</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>saturation</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>hue</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&imagick.return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title> <function>Imagick::modulateImage</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
function modulateImage($imagePath, $hue, $brightness, $saturation) {
|
|
$imagick = new \Imagick(realpath($imagePath));
|
|
$imagick->modulateImage($brightness, $saturation, $hue);
|
|
header("Content-Type: image/jpg");
|
|
echo $imagick->getImageBlob();
|
|
}
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</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
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
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
|
|
-->
|