mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 08:22:08 +01:00
Use consistent line terminator. git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@317671 c90b9560-bf6c-de11-be94-00142212c4b1
104 lines
3.1 KiB
XML
104 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: seros Status: ready -->
|
|
<refentry xml:id="function.imagealphablending" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>imagealphablending</refname>
|
|
<refpurpose>Establece el modo de mezcla para una imagen</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>imagealphablending</methodname>
|
|
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
|
|
<methodparam><type>bool</type><parameter>blendmode</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>imagealphablending</function> permite dos modos
|
|
diferentes de dibujar imágenes de color verdadero. En el modo de mezcla, el
|
|
componente canal alfa del color proporcionado a todas las funciones de dibujo,
|
|
como <function>imagesetpixel</function>, determina cuánto se debe permitir
|
|
que brille el color subyacente a través de los colores de la imagen. Como resultado, gd
|
|
mezcla automáticamente el color existente en ese punto con el color de dibujo,
|
|
y almacena el resultado en la imagen. El píxel resultante es opaco. En un modo
|
|
que no sea de mezcla, el color de dibujo se copia literalmente con la información del
|
|
canal alfa, remplazando el píxel destino. El modo de mezlca no está disponible
|
|
cuando se dibuja con imágenes de paleta de color.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
&gd.image.description;
|
|
<varlistentry>
|
|
<term><parameter>blendmode</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Si se habilita o no el modo mezcla. En imágenes de color verdadero
|
|
el valor por defecto es &true; de otro modo el valor por defecto es &false;
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<example>
|
|
<title>Ejemplo de uso de <function>imagealphablending</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// Crear imagen
|
|
$im = imagecreatetruecolor(100, 100);
|
|
|
|
// Establecer la mezcla alfa
|
|
imagealphablending($im, true);
|
|
|
|
// Dibujar un cuadrado
|
|
imagefilledrectangle($im, 30, 30, 70, 70, imagecolorallocate($im, 255, 0, 0));
|
|
|
|
// Imprimir
|
|
header('Content-type: image/png');
|
|
|
|
imagepng($im);
|
|
imagedestroy($im);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</refsect1>
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
¬e.gd.2;
|
|
</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
|
|
-->
|