XcmsStoreColor(3X11) | XLIB FUNCTIONS | XcmsStoreColor(3X11) |
̾??¶
XcmsStoreColor, XcmsStoreColors - ???????ꤹ??
????¶
Status XcmsStoreColor(display, colormap,
color)
Display *display;
Colormap colormap;
XcmsColor *color;
Status XcmsStoreColors(display, colormap,
colors, ncolors, compression_flags_return)
Display *display;
Colormap colormap;
XcmsColor colors[];
int ncolors;
Bool compression_flags_return[];
??????¶
- display
- X ?????Фؤ???³?????ꤹ?롣
- color
- ??Ǽ???륫?顼?????ȿ??????ꤹ?롣 ???? XcmsColor ??¤?Τǻ??ꤵ?????ͤϡ??֤????????ˤ??ѹ??????Ƥ??ʤ???
- colors
- ɽ???Ǥ??? XcmsColor ??¤?Τ??????????ꡣ?????Τ??줾???????Ǥϡ????顼?????Ȥ??Υ????˳?Ǽ ?????뿧?????ꤹ?롣 ?????ǻ??ꤷ???ͤϡ??֤????????ˤ??ѹ??????ʤ???
- colormap
- ???顼?ޥåפ????ꤹ?롣
- compression_flags_return
- ???̤ξ??֤? Boolean ?ͤ????????֤????롣 NULL ?Ǥʤ??ͤ?Ϳ?????줿???硢?б????뿧?????̤????Ƥ??????????γ??? ?Ǥˤ? True ?????ꤵ?졢?????Ǥʤ????? False ?????ꤵ???롣 ???̤ξ??֤????פǤ????С?NULL ?????ꤹ?뤳?ȡ?
- ncolors
- ɽ???????????? XcmsColor ??¤?Το??????ꤹ?롣
????¶
?ؿ? XcmsStoreColor ?ϡ? XcmsColor ??¤?Τǻ??ꤵ?줿???? RGB ?ͤ??Ѵ????롣 ???θ塢???δؿ???3?ĤΥե饰 (DoRed, DoGreen, DoBlue) ?????ꤵ???Ƥ??? XColor ??¤?Τ? RGB ɽ?????Ѥ??? XStoreColor ???ƤӽФ??? XcmsColor ??¤?Τ? pixel ?????Фǻ??ꤵ?줿???顼???????ѹ????롣 ???Υԥ??????ͤϻ??ꤷ?????顼?ޥåפ??Ф???ͭ???ʥ????ǥå????Ǥʤ??? ?Фʤ??ʤ????ޤ????ԥ??????ͤˤ??äƻ??ꤵ???륫?顼???????ɤ߽?ǽ ?ʥ????Ǥʤ????Фʤ??ʤ??? ?ԥ??????ͤ?ͭ???ʥ????ǥå????Ǥʤ??????ϡ????顼 BadValue ?Ȥʤ롣 ???顼???뤬???????Ƥ????Ƥ??ʤ??????ɤ??????Ѥdz??????Ƥ????? ?????????ϡ????顼 BadAccess ?Ȥʤ롣 ???顼?ޥåפ????Υ???????˥??ȡ??뤵???Ƥ????С??ѹ???¨?¤˲? ??ɽ????ȿ?Ǥ????롣
XStoreColor ???֤??ͤ??????ʤ????Ȥ????դ??衣???????äơ????δؿ????֤? XcmsSuccess ?ϡ?RGB ?ͤؤ??Ѵ??????????? XStoreColor ?θƤӽФ????Ԥ??줿???Ȥ??????? ?ºݤ˳?Ǽ???줿?????????????ˤϡ? XcmsQueryColor ?????Ѥ??뤳?ȡ? ????????Υϡ??ɥ??????????¤䥬???åȰ??̤Τ??ᡢ???顼?ޥåפ˳?Ǽ ???줿???ϻ??ꤷ?????Ȱۤʤ뤳?Ȥ????롣
XcmsStoreColor ?ϡ????顼 BadAccess, BadColor, BadValue ???????Ȥ????롣
?ؿ? XcmsStoreColors ?ϡ? XcmsColor ??¤?Τ??????ǻ??ꤵ?줿???? RGB ?ͤ??Ѵ????롣 ???θ塢???δؿ???3?ĤΥե饰 (DoRed, DoGreen, DoBlue) ?????ꤵ???Ƥ??? XColor ??¤?Τ? RGB ɽ?????Ѥ??? XStoreColors ???ƤӽФ????б????? XcmsColor ??¤?Τ? pixel ?????Фǻ??ꤵ?줿???顼???????ѹ????롣 ???Υԥ??????ͤϻ??ꤷ?????顼?ޥåפ??Ф???ͭ???ʥ????ǥå????Ǥʤ??? ?Фʤ??ʤ????ޤ????ԥ??????ͤˤ??äƻ??ꤵ???륫?顼???????ɤ߽?ǽ ?ʥ????Ǥʤ????Фʤ??ʤ??? ?ԥ??????ͤ?ͭ???ʥ????ǥå????Ǥʤ??????ϡ????顼 BadValue ?Ȥʤ롣 ???顼???뤬???????Ƥ????Ƥ??ʤ??????ɤ??????Ѥdz??????Ƥ????Ƥ??? ?????ϡ????顼 BadAccess ?Ȥʤ롣 1?İʾ??Υԥ??????ǥ??顼?ˤʤä?????1?ĤΥԥ????????Ф??ƥ??顼?????? ?????뤬???ɤΥԥ??????ˤʤ뤫?Ϥ狼???ʤ??? ???顼?ޥåפ????Υ???????˥??ȡ??뤵???Ƥ????С??ѹ???¨?¤˲? ??ɽ????ȿ?Ǥ????롣
XStoreColors ???֤??ͤ??????ʤ????Ȥ????դ??衣???????äơ????δؿ????֤? XcmsSuccess ?ϡ?RGB ?ͤؤ??Ѵ??????????? XStoreColors ?θƤӽФ????Ԥ??줿???Ȥ??????? ?ºݤ˳?Ǽ???줿?????????????ˤϡ? XcmsQueryColors ?????Ѥ??뤳?ȡ? ????????Υϡ??ɥ??????????¤䥬???åȰ??̤Τ??ᡢ???顼?ޥåפ˳?Ǽ ???줿???ϻ??ꤷ?????Ȱۤʤ뤳?Ȥ????롣
XcmsStoreColors ?ϡ????顼 BadAccess, BadColor, BadValue ???????Ȥ????롣
?֤???¶
- BadAccess
- ???????Ƥ????Ƥ??ʤ??????ȥ?饤?????Ȥ????????褦?Ȥ?????
- BadAccess
- ?ɤ??????ѤΥ??顼?ޥåפΥ????ȥ?˥??饤?????Ȥ?????????Ǽ???褦 ?Ȥ?????
- BadColor
- ?????? Colormap ???ͤ????????????Ƥ??? Colormap ???ؤ??Ƥ??ʤ???
- BadValue
- ???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼???????Ȥ? ???롣
??Ϣ????¶
XcmsAllocColor(3X11), XcmsQueryColor(3X11)
Xlib - C Language X Interface
Release 6.5 | X Version 11 |