📄 xinitimage.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XInitImage</TITLE></HEAD><BODY><H1 ALIGN=center>XInitImage</H1><H2>Syntax</H2><!.IN "XInitImage" "" "@DEF@"><CODE><PRE><B><A HREF="../introduction/errors.html#Status">Status</A></B> XInitImage(<B>image</B>) <A HREF="images.html#XImage">XImage</A> *<B>image</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>ximage</B><TD> Specifies the image.</TABLE><H2>Description</H2>The<B>XInitImage()</B>function initializes the internal image manipulation routines of animage structure, based on the values of the various structure members.All fields other than the manipulation routines must already be initialized.If the bytes_per_line member is zero,<B>XInitImage()</B>will assume the image data is contiguous in memory and set thebytes_per_line member to an appropriate value based on the othermembers; otherwise, the value of bytes_per_line is not changed.All of the manipulation routines are initialized to functionsthat other Xlib image manipulation functions need to operate on thethe type of image specified by the rest of the structure.<P>This function must be called for any image constructed by the clientbefore passing it to any other Xlib function.Image structures created or returned by Xlib do not need to beinitialized in this fashion.<P>This function returns a nonzero status if initialization of thestructure is successful. It returns zero if it detected some erroror inconsistency in the structure, in which case the image is not changed.<H2>Diagnostics</H2><TABLE></TABLE><H2>See also</H2><B><A HREF="../utilities/XAddPixel.html">XAddPixel()</A></B>,<B><A HREF="../utilities/XCreateImage.html">XCreateImage()</A></B>,<B><A HREF="../utilities/XDestroyImage.html">XDestroyImage()</A></B>,<B><A HREF="../utilities/XGetPixel.html">XGetPixel()</A></B>,<B><A HREF="XPutImage.html">XPutImage()</A></B>,<B><A HREF="../utilities/XPutPixel.html">XPutPixel()</A></B>,<B><A HREF="XGetSubImage.html">XGetSubImage()</A></B>,"<A HREF="images.html">Transferring Images between Client and Server</A>".<HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -