mirror of
https://github.com/php/doc-es.git
synced 2026-04-27 09:08:15 +02:00
ce4badb2fa
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@323337 c90b9560-bf6c-de11-be94-00142212c4b1
144 lines
3.3 KiB
XML
144 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 196abbabb4f94cc5e9de0ace42e121e5fdb4de7f Maintainer: seros Status: ready -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagick.chopimage">
|
|
<refnamediv>
|
|
<refname>Imagick::chopImage</refname>
|
|
<refpurpose>Borra una región de una imagen y la recorta</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>Imagick::chopImage</methodname>
|
|
<methodparam><type>int</type><parameter>width</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>height</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>x</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>y</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Borra una región de una imagen y colapsa la imagen para ocupar la porción borrada.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>width</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Ancho del área cortada
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>height</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Alto del área cortada
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>x</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
El punto de referencia X del área cortada
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>y</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
El punto de referencia Y del área cortada
|
|
</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>Usar <function>Imagick::chopImage</function>:</title>
|
|
<para>
|
|
Ejemplo de uso de Imagick::chopImage
|
|
</para>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
/* Crear algunos objetos */
|
|
$imagen = new Imagick();
|
|
$píxel = new ImagickPixel( 'gray' );
|
|
|
|
/* Nueva imagen */
|
|
$imagen->newImage(400, 200, $píxel);
|
|
|
|
/* Cortar imagen */
|
|
$imagen->chopImage(200, 200, 0, 0);
|
|
|
|
/* Dar un formato a la imagen */
|
|
$imagen->setImageFormat('png');
|
|
|
|
/* Imprimir la imagen con cabeceras */
|
|
header('Content-type: image/png');
|
|
echo $imagen;
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>Imagick::cropImage</function></member>
|
|
</simplelist>
|
|
</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
|
|
-->
|