2005-06-22 13:21:24 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2007-06-20 22:25:43 +00:00
|
|
|
<!-- $Revision: 1.5 $ -->
|
2005-06-22 13:21:24 +00:00
|
|
|
<!-- splitted from ./en/functions/ps.xml, last change in rev 1.12 -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.ps-open-image-file" xmlns="http://docbook.org/ns/docbook">
|
2005-06-22 13:21:24 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>ps_open_image_file</refname>
|
|
|
|
<refpurpose>Opens image from file</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>int</type><methodname>ps_open_image_file</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>psdoc</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>type</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
2005-06-22 13:57:20 +00:00
|
|
|
<methodparam choice="opt"><type>string</type><parameter>stringparam</parameter></methodparam>
|
|
|
|
<methodparam choice="opt"><type>int</type><parameter>intparam</parameter></methodparam>
|
2005-06-22 13:21:24 +00:00
|
|
|
</methodsynopsis>
|
2006-03-03 12:31:05 +00:00
|
|
|
<para>
|
|
|
|
Loads an image for later use.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>psdoc</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Resource identifier of the postscript file
|
|
|
|
as returned by <function>ps_new</function>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>type</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The type of the image. Possible values are <literal>png</literal>,
|
|
|
|
<literal>jpeg</literal>, or <literal>eps</literal>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>filename</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The name of the file containing the image data.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>stringparam</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Not used.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>intparam</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Not used.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
2005-06-22 13:21:24 +00:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns identifier of image or zero in case of an error. The identifier is
|
2005-06-24 13:02:26 +00:00
|
|
|
a positive number greater than 0.
|
2005-06-22 13:21:24 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
|
|
|
<para>
|
|
|
|
<simplelist>
|
|
|
|
<member><function>ps_open_image</function></member>
|
|
|
|
<member><function>ps_place_image</function></member>
|
|
|
|
<member><function>ps_close_image</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:"../../../../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
|
|
|
|
-->
|
|
|
|
|