Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > a34ed6838d4b29d38abd504392a4a797 > files > 2109

php-manual-es-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>PDF_open_memory_image</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual de PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="PDF functions"
HREF="ref.pdf.html"><LINK
REL="PREVIOUS"
TITLE="PDF_open_jpeg"
HREF="function.pdf-open-jpeg.html"><LINK
REL="NEXT"
TITLE="pdf_open_pdi_page"
HREF="function.pdf-open-pdi-page.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual de PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.pdf-open-jpeg.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.pdf-open-pdi-page.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.pdf-open-memory-image"
></A
>PDF_open_memory_image</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN59284"
></A
><P
>    (PHP 3&#62;= 3.0.10, PHP 4 )</P
>PDF_open_memory_image&nbsp;--&nbsp;Opens an image created with PHP's image functions</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN59287"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>pdf_open_memory_image</B
> ( int pdf document, int image)<BR
></BR
><P
>&#13;     The <B
CLASS="function"
>PDF_open_memory_image()</B
> function takes
     an image created with the PHP's image functions and makes it available
     for the pdf document. The function returns a pdf
     image identifier.

     <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN59300"
></A
><P
><B
>Ejemplo 1. Including a memory image</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="programlisting"
>&#60;?php
$im = ImageCreate(100, 100);
$col = ImageColorAllocate($im, 80, 45, 190);
ImageFill($im, 10, 10, $col);
$pim = PDF_open_memory_image($pdf, $im);
ImageDestroy($im);
pdf_place_image($pdf, $pim, 100, 100, 1);
pdf_close_image($pdf, $pim);
?&#62;</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></P
><P
>&#13;     See also <A
HREF="function.pdf-close-image.html"
><B
CLASS="function"
>PDF_close_image()</B
></A
>,
              <A
HREF="function.pdf-open-jpeg.html"
><B
CLASS="function"
>PDF_open_jpeg()</B
></A
>,
              <A
HREF="function.pdf-open-gif.html"
><B
CLASS="function"
>PDF_open_gif()</B
></A
>,
              <A
HREF="function.pdf-open-png.html"
><B
CLASS="function"
>PDF_open_png()</B
></A
>
              <B
CLASS="function"
>PDF_execute_image()</B
>,
              <A
HREF="function.pdf-place-image.html"
><B
CLASS="function"
>PDF_place_image()</B
></A
>,
              <B
CLASS="function"
>PDF_put_image()</B
>.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.pdf-open-jpeg.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Inicio</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.pdf-open-pdi-page.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>PDF_open_jpeg</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.pdf.html"
ACCESSKEY="U"
>Subir</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>pdf_open_pdi_page</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>