mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Add pdf_open_png.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@25082 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
fa59ba91c7
commit
7ff9f32110
1 changed files with 50 additions and 0 deletions
|
@ -1958,6 +1958,54 @@ pdf_close_image($pdf, $im);
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.pdf-open-png">
|
||||
<refnamediv>
|
||||
<refname>PDF_open_png</refname>
|
||||
<refpurpose>
|
||||
Opens a PNG image
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>int
|
||||
<function>pdf_open_png</function>
|
||||
</funcdef>
|
||||
<paramdef>int
|
||||
<parameter>pdf</parameter>
|
||||
</paramdef>
|
||||
<paramdef>string
|
||||
<parameter>png_file</parameter>
|
||||
</paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
The <function>PDF_open_png</function> function opens an image stored
|
||||
in the file with the name <parameter>filename</parameter>.
|
||||
The format of the image has to be png. The function returns a pdf
|
||||
image identifier.
|
||||
<example>
|
||||
<title>Including a PNG image</title>
|
||||
<programlisting>
|
||||
<?php
|
||||
$im = PDF_open_gif($pdf, "test.png");
|
||||
pdf_place_image($pdf, $im, 100, 100, 1);
|
||||
pdf_close_image($pdf, $im);
|
||||
?>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>PDF_close_image</function>,
|
||||
<function>PDF_open_jpeg</function>,
|
||||
<function>PDF_open_gif</function>,
|
||||
<function>PDF_open_memory_image</function>,
|
||||
<function>PDF_execute_image</function>,
|
||||
<function>PDF_place_image</function>,
|
||||
<function>PDF_put_image</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.pdf-open-memory-image">
|
||||
<refnamediv>
|
||||
<refname>PDF_open_memory_image</refname>
|
||||
|
@ -1995,6 +2043,7 @@ pdf_close_image($pdf, $pim);
|
|||
See also <function>PDF_close_image</function>,
|
||||
<function>PDF_open_jpeg</function>,
|
||||
<function>PDF_open_gif</function>,
|
||||
<function>PDF_open_png</function>
|
||||
<function>PDF_execute_image</function>,
|
||||
<function>PDF_place_image</function>,
|
||||
<function>PDF_put_image</function>.</para>
|
||||
|
@ -2021,6 +2070,7 @@ pdf_close_image($pdf, $pim);
|
|||
<para>
|
||||
See also <function>PDF_close_image</function>,
|
||||
<function>PDF_open_gif</function>,
|
||||
<function>PDF_open_png</function>,
|
||||
<function>PDF_open_memory_image</function>,
|
||||
<function>PDF_execute_image</function>,
|
||||
<function>PDF_place_image</function>,
|
||||
|
|
Loading…
Reference in a new issue