Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 1113

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

<HTML
><HEAD
><TITLE
>imagewbmp</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Image functions"
HREF="ref.image.html"><LINK
REL="PREVIOUS"
TITLE="imagetypes"
HREF="function.imagetypes.html"><LINK
REL="NEXT"
TITLE="iptcembed"
HREF="function.iptcembed.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"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.imagetypes.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.iptcembed.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.imagewbmp"
></A
>imagewbmp</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN36892"
></A
><P
>    (PHP 3&#62;= 3.0.15, PHP 4 &#62;= 4.0.1)</P
>imagewbmp&nbsp;--&nbsp;Output image to browser or file</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN36895"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>imagewbmp</B
> ( resource image [, string filename [, int foreground]])<BR
></BR
><P
>&#13;     <B
CLASS="function"
>imagewbmp()</B
> creates the
     <SPAN
CLASS="acronym"
>WBMP</SPAN
> file in filename from the image
     <TT
CLASS="parameter"
><I
>image</I
></TT
>. The <TT
CLASS="parameter"
><I
>image</I
></TT
> argument
     is the return from the <A
HREF="function.imagecreate.html"
><B
CLASS="function"
>imagecreate()</B
></A
> function.
    </P
><P
>&#13;     The filename argument is optional, and if left off, the raw image
     stream will be output directly.
     By sending an <SPAN
CLASS="acronym"
>image/vnd.wap.wbmp</SPAN
> content-type
     using <A
HREF="function.header.html"
><B
CLASS="function"
>header()</B
></A
>, you can create
     a PHP script that outputs WBMP images directly.
     <DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
       WBMP support is only available if PHP was compiled
       against GD-1.8 or later.
      </P
></BLOCKQUOTE
></DIV
>
    </P
><P
>&#13;     Using the optional <TT
CLASS="parameter"
><I
>foreground</I
></TT
>
     parameter, you can set the foreground color. Use an
     identifier obtained from <A
HREF="function.imagecolorallocate.html"
><B
CLASS="function"
>imagecolorallocate()</B
></A
>.
     The default foreground color is black.
    </P
><P
>&#13;     See also <A
HREF="function.image2wbmp.html"
><B
CLASS="function"
>image2wbmp()</B
></A
>, <A
HREF="function.imagepng.html"
><B
CLASS="function"
>imagepng()</B
></A
>,
     <A
HREF="function.imagegif.html"
><B
CLASS="function"
>imagegif()</B
></A
>, <A
HREF="function.imagejpeg.html"
><B
CLASS="function"
>imagejpeg()</B
></A
>,
     <A
HREF="function.imagetypes.html"
><B
CLASS="function"
>imagetypes()</B
></A
>.
    </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.imagetypes.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.iptcembed.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>imagetypes</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.image.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>iptcembed</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>