<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >cpdf_place_inline_image</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="PHP 手册" HREF="index.html"><LINK REL="UP" TITLE="ClibPDF Functions" HREF="ref.cpdf.html"><LINK REL="PREVIOUS" TITLE="cpdf_page_init" HREF="function.cpdf-page-init.html"><LINK REL="NEXT" TITLE="cpdf_rect" HREF="function.cpdf-rect.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></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 手册</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.cpdf-page-init.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.cpdf-rect.html" ACCESSKEY="N" >下一页</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.cpdf-place-inline-image" ></A >cpdf_place_inline_image</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN19209" ></A ><P > (PHP 3 >= 3.0.9, PHP 4, PHP 5 <= 5.0.4)</P >cpdf_place_inline_image -- Places an image on the page</DIV ><DIV CLASS="refsect1" ><A NAME="AEN19212" ></A ><H2 >说明</H2 >bool <B CLASS="methodname" >cpdf_place_inline_image</B > ( int pdf_document, int image, float x_coor, float y_coor, float angle, float width, float height, int gsave [, int mode] )<BR ></BR ><P > Places an image created with the PHP image functions on the page. The image can be scaled at the same time. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >注意: </B > This function is only available if PHP was compiled with the GD Graphics Library 1.3. See the <A HREF="ref.image.html#image.requirements" >GD extension</A > installation instructions for further information. </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN19248" ></A ><H2 >参数</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" > pdf_document</CODE ></DT ><DD ><P >The document handle, returned by <A HREF="function.cpdf-open.html" ><B CLASS="function" >cpdf_open()</B ></A >.</P ></DD ><DT ><CODE CLASS="parameter" >image</CODE ></DT ><DD ><P > An image created with the PHP image functions </P ></DD ><DT ><CODE CLASS="parameter" >x_coor</CODE ></DT ><DD ><P > The x-coordinate of the image </P ></DD ><DT ><CODE CLASS="parameter" >y_coor</CODE ></DT ><DD ><P > The y-coordinate of the image </P ></DD ><DT ><CODE CLASS="parameter" >angle</CODE ></DT ><DD ><P > The image rotation angle, in degrees </P ></DD ><DT ><CODE CLASS="parameter" >width</CODE ></DT ><DD ><P > The image width </P ></DD ><DT ><CODE CLASS="parameter" >height</CODE ></DT ><DD ><P > The image height </P ></DD ><DT ><CODE CLASS="parameter" >gsave</CODE ></DT ><DD ><P > Should be non-zero to allow this function to operate correctly </P ></DD ><DT ><CODE CLASS="parameter" > mode</CODE ></DT ><DD ><P >The optional parameter <CODE CLASS="parameter" >mode</CODE > determines the unit length. If it is 0 or omitted the default unit as specified for the page is used. Otherwise the coordinates are measured in postscript points disregarding the current unit.</P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN19299" ></A ><H2 >返回值</H2 ><P > 如果成功则返回 <TT CLASS="constant" ><B >TRUE</B ></TT >,失败则返回 <TT CLASS="constant" ><B >FALSE</B ></TT >。 </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN19304" ></A ><H2 >参见</H2 ><P > <P ></P ><TABLE BORDER="0" ><TBODY ><TR ><TD ><A HREF="function.cpdf-import-jpeg.html" ><B CLASS="function" >cpdf_import_jpeg()</B ></A ></TD ></TR ></TBODY ></TABLE ><P ></P > </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.cpdf-page-init.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >起始页</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.cpdf-rect.html" ACCESSKEY="N" >下一页</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >cpdf_page_init</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.cpdf.html" ACCESSKEY="U" >上一级</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >cpdf_rect</TD ></TR ></TABLE ></DIV ></BODY ></HTML >