cvs: peardoc /en/package/images/image-text/image-text automeasurize.xml display.xml getimg.xml image_text.xml init.xml measurize.xml render.xml
save.xml set.xml setcolor.xml setcolors.xml

From: Date: Fri, 20 Feb 2004 01:22:42 +0000
Subject: cvs: peardoc /en/package/images/image-text/image-text automeasurize.xml display.xml getimg.xml image_text.xml init.xml measurize.xml render.xml
save.xml set.xml setcolor.xml setcolors.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-2590@lists.php.net to get a copy of this message
toby Thu Feb 19 20:22:42 2004 EDT Added files: /peardoc/en/package/images/image-text/image-text automeasurize.xml display.xml getimg.xml image_text.xml init.xml measurize.xml render.xml save.xml set.xml setcolor.xml setcolors.xml Log: * Adding documentation for Image_Text.

http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/automeasurize.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/automeasurize.xml +++ peardoc/en/package/images/image-text/image-text/automeasurize.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.automeasurize"> <refnamediv> <refname><function>Image_Text::autoMeasurize</function></refname> <refpurpose>Auto measurize text</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>int <function>Image_Text::autoMeasurize</function></funcdef> <paramdef>int <parameter> <optional>$start = &false;</optional></parameter></paramdef> <paramdef>int <parameter> <optional>$end = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.automeasurize.desc"> &title.desc; <para>Automatically determines the greatest possible font size to fit the text into the text box. This method may be very resource intensive on your webserver. A good tweaking point are the $start and $end parameters, which specify the range of font sizes to search through. Anyway, the results should be cached if possible. You can optionally set $start and $end here as a parameter or the settings of the options array are used.</para> </refsect1> <refsect1 id="package.images.image-text.image-text.automeasurize.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.int; <parameter>$start</parameter> </term> <listitem> <para> Fontsize to start testing with. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.int; <parameter>$end</parameter> </term> <listitem> <para> Fontsize to end testing with. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.automeasurize.returns"> &title.returns; <para> <emphasis>returns</emphasis> Fontsize measured or PEAR::Error. </para> </refsect1> <refsect1 id="package.images.image-text.image-text.automeasurize.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.automeasurize.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.images.image-text.image-text.measurize"><function>Image_Text::measurize</function></link> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.automeasurize.note"> &title.note; &note.notstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/display.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/display.xml +++ peardoc/en/package/images/image-text/image-text/display.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.display"> <refnamediv> <refname><function>Image_Text::display</function></refname> <refpurpose>Display the image (send it to the browser).</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>Image_Text::display</function></funcdef> <paramdef>bool <parameter> <optional>$save = &false;</optional></parameter></paramdef> <paramdef>bool <parameter> <optional>$free = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.display.desc"> &title.desc; <para>This will output the image to the users browser. You can use the standard IMAGETYPE_* constants to determine which image type will be generated. Optionally you can save your image to a destination you set in the options.</para> </refsect1> <refsect1 id="package.images.image-text.image-text.display.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.bool; <parameter>$save</parameter> </term> <listitem> <para> Save or not the image on printout. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.bool; <parameter>$free</parameter> </term> <listitem> <para> Free the image on exit. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.display.returns"> &title.returns; <para> <emphasis>returns</emphasis> True on success, otherwise PEAR::Error. </para> </refsect1> <refsect1 id="package.images.image-text.image-text.display.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.display.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.images.image-text.image-text.save"><function>Image_Text::save</function></link> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.display.note"> &title.note; &note.notstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/getimg.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/getimg.xml +++ peardoc/en/package/images/image-text/image-text/getimg.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.getimg"> <refnamediv> <refname><function>Image_Text::getImg</function></refname> <refpurpose>Return the image ressource.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>resource&amp; <function>Image_Text::getImg</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.getimg.desc"> &title.desc; <para>Get the image canvas.</para> </refsect1> <refsect1 id="package.images.image-text.image-text.getimg.returns"> &title.returns; <para> <emphasis>returns</emphasis> Used image resource </para> </refsect1> <refsect1 id="package.images.image-text.image-text.getimg.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.getimg.note"> &title.note; &note.notstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/image_text.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/image_text.xml +++ peardoc/en/package/images/image-text/image-text/image_text.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.image-text"> <refnamediv> <refname>constructor <function>Image_Text::Image_Text</function></refname> <refpurpose>Constructor</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>Image_Text::Image_Text</function></funcdef> <paramdef>string <parameter>$text</parameter></paramdef> <paramdef>array <parameter> <optional>$options = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.image-text.desc"> &title.desc; <para>Set the text and options. This initializes a new Image_Text object. You must set your text here. Optinally you can set all options here using the $options parameter. If you finished switching all options you have to call the init() method first befor doing anything further! See Image_Text::set() for further information.</para> </refsect1> <refsect1 id="package.images.image-text.image-text.image-text.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$text</parameter> </term> <listitem> <para> Text to print. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.array; <parameter>$options</parameter> </term> <listitem> <para> Options. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.image-text.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.image-text.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.images.image-text.image-text.set"><function>Image_Text::set</function></link>, <link linkend="package.images.image-text.image-text.set"><function>Image_Text::set</function></link>, <link linkend="package.images.image-text.image-text.init"><function>Image_Text::init</function></link> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.image-text.note"> &title.note; &note.notstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/init.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/init.xml +++ peardoc/en/package/images/image-text/image-text/init.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.init"> <refnamediv> <refname><function>Image_Text::init</function></refname> <refpurpose>Initialiaze the Image_Text object.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>Image_Text::init</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.init.desc"> &title.desc; <para>This method has to be called after setting the options for your Image_Text object. It initializes the canvas, normalizes some data and checks important options. Be shure to check the initialization after you switched some options. The set() method may force you to reinitialize the object.</para> </refsect1> <refsect1 id="package.images.image-text.image-text.init.returns"> &title.returns; <para> <emphasis>returns</emphasis> True on success, otherwise PEAR::Error. </para> </refsect1> <refsect1 id="package.images.image-text.image-text.init.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.init.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.images.image-text.image-text.set"><function>Image_Text::set</function></link> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.init.note"> &title.note; &note.notstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/measurize.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/measurize.xml +++ peardoc/en/package/images/image-text/image-text/measurize.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.measurize"> <refnamediv> <refname><function>Image_Text::measurize</function></refname> <refpurpose>Measurize text into the text box</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>Image_Text::measurize</function></funcdef> <paramdef>bool <parameter> <optional>$force = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.measurize.desc"> &title.desc; <para>This method makes your text fit into the defined textbox by measurizing the lines for your given font-size. You can do this manually before rendering (or use even Image_Text::autoMeasurize()) or the renderer will do measurizing automatically.</para> </refsect1> <refsect1 id="package.images.image-text.image-text.measurize.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.bool; <parameter>$force</parameter> </term> <listitem> <para> Optionally, default is &false;, set &true; to force measurizing. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.measurize.returns"> &title.returns; <para> <emphasis>returns</emphasis> Array of measured lines or PEAR::Error. </para> </refsect1> <refsect1 id="package.images.image-text.image-text.measurize.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.measurize.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.images.image-text.image-text.automeasurize"><function>Image_Text::autoMeasurize</function></link> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.measurize.note"> &title.note; &note.notstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/render.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/render.xml +++ peardoc/en/package/images/image-text/image-text/render.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.render"> <refnamediv> <refname><function>Image_Text::render</function></refname> <refpurpose>Render the text in the canvas using the given options.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>Image_Text::render</function></funcdef> <paramdef>bool <parameter> <optional>$force = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.render.desc"> &title.desc; <para>This renders the measurized text or automatically measures it first. The $force parameter can be used to switch of measurizing problems (this may cause your text being rendered outside a given text box or destroy your image completely).</para> </refsect1> <refsect1 id="package.images.image-text.image-text.render.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.bool; <parameter>$force</parameter> </term> <listitem> <para> Optional, initially &false;, set &true; to silence measurize errors. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.render.returns"> &title.returns; <para> <emphasis>returns</emphasis> True on success, otherwise PEAR::Error. </para> </refsect1> <refsect1 id="package.images.image-text.image-text.render.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.render.note"> &title.note; &note.notstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/save.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/save.xml +++ peardoc/en/package/images/image-text/image-text/save.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.save"> <refnamediv> <refname><function>Image_Text::save</function></refname> <refpurpose>Save image canvas.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>Image_Text::save</function></funcdef> <paramdef>string <parameter> <optional>$destFile = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.save.desc"> &title.desc; <para>Saves the image to a given destination. You can leave out the destination file path, if you have the option for that set correctly. Saving is possible with the save() method, too.</para> </refsect1> <refsect1 id="package.images.image-text.image-text.save.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$destFile</parameter> </term> <listitem> <para> The destination to save to (optional, uses options value else). </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.save.returns"> &title.returns; <para> <emphasis>returns</emphasis> True on success, otherwise PEAR::Error. </para> </refsect1> <refsect1 id="package.images.image-text.image-text.save.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.save.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.images.image-text.image-text.display"><function>Image_Text::display</function></link> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.save.note"> &title.note; &note.notstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/set.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/set.xml +++ peardoc/en/package/images/image-text/image-text/set.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.set"> <refnamediv> <refname><function>Image_Text::set</function></refname> <refpurpose>Set options</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>Image_Text::set</function></funcdef> <paramdef>mixed <parameter>$option</parameter></paramdef> <paramdef>mixed <parameter> <optional>$value = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.set.desc"> &title.desc; <para>Set a single or multiple options. It may happen that you have to reinitialize the Image_Text object after changing options.</para> <para>Possible options to set are: <![CDATA[ 'x' | This sets the top left coordinates (using x/y) or the center point 'y' | coordinates (using cx/cy) for your text box. The values from 'cx' | cx/cy will overwrite x/y. 'cy' | 'canvas' | You can set different values as a canvas: | - A gd image resource. | - An array with 'width' and 'height'. | - Nothing (the canvas will be measured after the real text size). 'antialias' | This is usually true. Set it to false to switch antialiasing off. 'width' | The width and height for your text box. 'height' | 'halign' | Alignment of your text inside the textbox. Use alignmnet constants to define 'valign' | vertical and horizontal alignment. 'angle' | The angle to rotate your text box. 'color' | An array of color values. Colors will be rotated in the mode you choose (linewise | or paragraphwise). Can be in the following formats: | - String representing HTML style hex couples (+ unusual alpha couple in the first place, optional). | - Array of int values using 'r', 'g', 'b' and optionally 'a' as keys. 'color_mode' | The color rotation mode for your color sets. Does only apply if you | defined multiple colors. Use 'line' or 'paragraph'. 'font_path' | Location of the font to use. 'font_file' | 'font_size' | The font size to render text in (will be overwriten, if you use automeasurize). 'line_spacing' | Measure for the line spacing to use. Default is 0.5. 'min_font_size' | Automeasurize settings. Try to keep this area as small as possible to get better 'max_font_size' | performance. 'image_type' | The type of image (use image type constants). Is default set to PNG. 'dest_file' | The destination to (optionally) save your file. ]]></para> </refsect1> <refsect1 id="package.images.image-text.image-text.set.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$option</parameter> </term> <listitem> <para> A single option name or the options array. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$value</parameter> </term> <listitem> <para> Option value if $option is string. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.set.returns"> &title.returns; <para> <emphasis>returns</emphasis> True on success, otherwise PEAR::Error. </para> </refsect1> <refsect1 id="package.images.image-text.image-text.set.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.set.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.images.image-text.image-text.image-text"><function>Image_Text::Image_Text</function></link> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.set.note"> &title.note; &note.notstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/setcolor.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/setcolor.xml +++ peardoc/en/package/images/image-text/image-text/setcolor.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.setcolor"> <refnamediv> <refname><function>Image_Text::setColor</function></refname> <refpurpose>Set a color</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>Image_Text::setColor</function></funcdef> <paramdef>mixed <parameter>$color</parameter></paramdef> <paramdef>mixed <parameter> <optional>$id = 0</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.setcolor.desc"> &title.desc; <para>This method is used to set a color at a specific color ID inside the color cycle.</para> <para>The following colors syntaxes are understood by this method: <itemizedlist> <listitem><para>&quot;#ffff00&quot; hexadecimal format (HTML style), with and without #.</para></listitem> <listitem><para>&quot;#08ffff00&quot; hexadecimal format (HTML style) with alpha channel (08), with and without #.</para></listitem> <listitem><para>array with &apos;r&apos;,&apos;g&apos;,&apos;b&apos; and (optionally) &apos;a&apos; keys, using int values.</para></listitem> </itemizedlist></para> </refsect1> <refsect1 id="package.images.image-text.image-text.setcolor.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$color</parameter> </term> <listitem> <para> Color value. </para> </listitem> </varlistentry> </variablelist> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$id</parameter> </term> <listitem> <para> ID (in the color array) to set color to. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.setcolor.returns"> &title.returns; <para> <emphasis>returns</emphasis> True on success, otherwise PEAR::Error. </para> </refsect1> <refsect1 id="package.images.image-text.image-text.setcolor.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.setcolor.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.images.image-text.image-text.setcolors"><function>Image_Text::setColors</function></link>, <link linkend="package.images.image-text.image-text.set"><function>Image_Text::set</function></link> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.setcolor.note"> &title.note; &note.notstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/en/package/images/image-text/image-text/setcolors.xml?r=1.1&p=1 Index: peardoc/en/package/images/image-text/image-text/setcolors.xml +++ peardoc/en/package/images/image-text/image-text/setcolors.xml <!-- $Revision: 1.1 $ --> <refentry id="package.images.image-text.image-text.setcolors"> <refnamediv> <refname><function>Image_Text::setColors</function></refname> <refpurpose>Set the color-set</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once &apos;ImageText.php&apos;; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>Image_Text::setColors</function></funcdef> <paramdef>mixed <parameter>$colors</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.images.image-text.image-text.setcolors.desc"> &title.desc; <para>Using this method you can set multiple colors for your text. Use a simple numeric array to determine their order and give it to this function. Multiple colors will be cycled by the options specified &apos;color_mode&apos; option. The given array will overwrite the existing color settings!</para> <para>The following colors syntaxes are understood by this method: <itemizedlist> <listitem><para>&quot;#ffff00&quot; hexadecimal format (HTML style), with and without #.</para></listitem> <listitem><para>&quot;#08ffff00&quot; hexadecimal format (HTML style) with alpha channel (08), with and without #.</para></listitem> <listitem><para>array with &apos;r&apos;,&apos;g&apos;,&apos;b&apos; and (optionally) &apos;a&apos; keys, using int values.</para></listitem> <listitem><para>a GD color special color (tiled,...).</para></listitem> </itemizedlist> A single color or an array of colors are allowed here.</para> </refsect1> <refsect1 id="package.images.image-text.image-text.setcolors.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$colors</parameter> </term> <listitem> <para> Single color or array of colors. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.setcolors.returns"> &title.returns; <para> <emphasis>returns</emphasis> True on success, otherwise PEAR::Error. </para> </refsect1> <refsect1 id="package.images.image-text.image-text.setcolors.throws"> &title.throws; <para> <emphasis>throws</emphasis> no exceptions thrown </para> </refsect1> <refsect1 id="package.images.image-text.image-text.setcolors.see"> &title.see; <para> <emphasis>see</emphasis> <link linkend="package.images.image-text.image-text.setcolor"><function>Image_Text::setColor</function></link>, <link linkend="package.images.image-text.image-text.set"><function>Image_Text::set</function></link> </para> </refsect1> <refsect1 id="package.images.image-text.image-text.setcolors.note"> &title.note; &note.notstatic; </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 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 -->
« previous php.pear.doc (#2590) next »