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@336399 c90b9560-bf6c-de11-be94-00142212c4b1
112 lines
2.9 KiB
XML
112 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.convolveimage">
|
|
<refnamediv>
|
|
<refname>Imagick::convolveImage</refname>
|
|
<refpurpose>Aplica una semilla de convolución a medida a la imagen</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>Imagick::convolveImage</methodname>
|
|
<methodparam><type>array</type><parameter>kernel</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>channel</parameter><initializer>Imagick::CHANNEL_ALL</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Aplica una semilla de convolución a medida a la imagen.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>kernel</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
La semilla de convolución
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>channel</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Proporcione cualquier constante de canal que sea válida para su modo de canal. Para
|
|
aplicar más de un canal, combine las constantes channeltype usando
|
|
operadores a nivel de bits. Consulte esta lista de
|
|
<link linkend="imagick.constants.channel">constantes de canal</link>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&imagick.return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="errors">
|
|
&reftitle.errors;
|
|
<para>
|
|
&imagick.imagick.throws;
|
|
</para>
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title> <function>Imagick::convolveImage</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
function convolveImage($imagePath, $bias, $kernelMatrix) {
|
|
$imagick = new \Imagick(realpath($imagePath));
|
|
//$edgeFindingKernel = [-1, -1, -1, -1, 8, -1, -1, -1, -1,];
|
|
$imagick->setImageBias($bias * \Imagick::getQuantum());
|
|
$imagick->convolveImage($kernelMatrix);
|
|
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
|
|
-->
|