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
150 lines
3.6 KiB
XML
150 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: seros Status: ready -->
|
|
<refentry xml:id="function.imagegrabwindow" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>imagegrabwindow</refname>
|
|
<refpurpose>Capturar una ventana</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>resource</type><methodname>imagegrabwindow</methodname>
|
|
<methodparam><type>int</type><parameter>window_handle</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>client_area</parameter><initializer>0</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Captura una ventana o su área de cliente usando un gestor de ventanas
|
|
(la propiedad HWND en instancia COM)
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>window_handle</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
El ID del HWND de ventana.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>client_area</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Incluye el área del cliente de la ventana de aplicación.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Devuelve un identificador de recurso de imagen si tiene éxito, &false; si falló.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="errors">
|
|
&reftitle.errors;
|
|
<para>
|
|
E_NOTICE es emitido si <parameter>window_handle</parameter> no es un
|
|
gestor de ventana válido.
|
|
E_WARNING es emitido si la API de Windows es demasiado antigua.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Ejemplo de <function>imagegrabwindow</function></title>
|
|
<para>
|
|
Capturar una ventana (IE por ejemplo)
|
|
</para>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$navegador = new COM("InternetExplorer.Application");
|
|
$gestor = $navegador->HWND;
|
|
$navegador->Visible = true;
|
|
$im = imagegrabwindow($gestor);
|
|
$navegador->Quit();
|
|
imagepng($im, "iesnap.png");
|
|
imagedestroy($im);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
<para>
|
|
Capturar una ventana (IE por ejemplo) pero con su contenido
|
|
</para>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$navegador = new COM("InternetExplorer.Application");
|
|
$gestor = $navegador->HWND;
|
|
$navegador->Visible = true;
|
|
$navegador->Navigate("http://www.libgd.org");
|
|
|
|
/* ¿Todavía funciona? */
|
|
while ($navegador->Busy) {
|
|
com_message_pump(4000);
|
|
}
|
|
$im = imagegrabwindow($gestor, 0);
|
|
$navegador->Quit();
|
|
imagepng($im, "iesnap.png");
|
|
imagedestroy($im);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
<note>
|
|
<para>
|
|
Esta función sólo está disponible en Windows.
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>imagegrabscreen</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
|
|
-->
|
|
|