Scroll to navigation

XcmsQueryColor(3X11) XLIB FUNCTIONS XcmsQueryColor(3X11)

̾??

XcmsQueryColor, XcmsQueryColors, XcmsLookupColor - ?????ͤ?????????

????

Status XcmsQueryColor(display, colormap, color_in_out, result_format)
Display *display;
Colormap colormap;
XcmsColor *color_in_out;
XcmsColorFormat result_format;

Status XcmsQueryColors(display, colormap, colors_in_out, ncolors, result_format)
Display *display;
Colormap colormap;
XcmsColor colors_in_out[];
unsigned int ncolors;
XcmsColorFormat result_format;

Status XcmsLookupColor(display, colormap, color_string, color_exact_return, color_screen_return,
result_format)
Display *display;
Colormap colormap;
char *color_string;
XcmsColor *color_exact_return, *color_screen_return;
XcmsColorFormat result_format;

??????

X ?????Фؤ???³?????ꤹ?롣
???顼?ޥåפ????ꤹ?롣
??ʸ???󤫤?Ÿ?????줿ɽ???䡢??̾?ǡ????١????Ǹ??Ĥ??ä??б?????ʸ?? ?󤫤?Ÿ?????줿ɽ?????֤????롣
?䤤???碌?륫?顼?????򼨤? pixel ?????Ф????ꤹ?롣 ???顼?????˳?Ǽ??????ɽ???ϡ????? XcmsColor ??¤?Τ??֤????롣
?????꡼??????ʣ?̤??뤳?Ȥ??Ǥ??뿧???֤????롣
??ʸ?????????ꤹ?롣
?֤?????ɽ??(?????? color_screen_return ?? color_exact_return arguments) ???Ф??뿧?Υե????ޥåȤ????ꤹ?롣 ?ե????ޥåȤ? XcmsUndefinedFormat ?Ǥ??ꡢ??ʸ???󤬿??ͤ?ɽ??????ɽ???ξ??硢ɽ???Ϥ??ο??ͷ?????ɽ???? ?Ѥ????????ե????ޥåȤ??֤????롣 ?ե????ޥåȤ? XcmsUndefinedFormat ?Ǥ??ꡢ??ʸ???󤬿???̾?????ޤ????硢ɽ???ϥǡ????١????˿?????Ǽ???? ???????Ѥ????????ե????ޥåȤ??֤????롣
ɽ???????????? XcmsColor ??¤?Το??????ꤹ?롣

????

?ؿ? XcmsQueryColor ?ϡ????ꤷ?? XcmsColor ??¤?Τ? pixel ?????ФΥԥ??????ͤ??Ф??? RGB ?ͤ??????????????ͤ? result_format ?ǻ??ꤵ?줿??Ū?ե????ޥåȤ??Ѵ????롣 ?ԥ??????ͤ????ꤷ?????顼?ޥå?????ͭ???ʥ????ǥå????Ǥʤ??????ϡ? ???顼 BadValue ?Ȥʤ롣 ?ؿ? XcmsQueryColors ?ϡ?ʣ???? XcmsColor ??¤?Τ? pixel ?????ФΥԥ??????ͤ??Ф??? RGB ?ͤ??????????????ͤ??????? result_formt ?ǻ??ꤵ?줿??Ū?ե????ޥåȤ??ѹ????롣 ?ԥ??????ͤ????ꤷ?????顼?ޥå?????ͭ???ʥ????ǥå????Ǥʤ??????ϡ? ???顼 BadValue ?Ȥʤ롣 1?Ĥ???¿???Υԥ????뤬???顼?ˤʤä????硢???Τ????륨?顼?Ϥɤ줫?? ?????ʤ???

XcmsQueryColor ?? XcmsQueryColors ?ϡ????顼 BadColor, BadValue ?򵯤??????Ȥ????롣

?ؿ? XcmsLookupColor ?ϡ????ꤷ?????顼?ޥåפ˴?Ϣ???륹???꡼???ˤĤ??ơ???̾??ʸ?????? ?Ȥä????????Ԥ??? ???δؿ??????Τʿ????ͤȡ????ꤷ?????顼?ޥåפΥӥ??奢?뷿?˴ؤ? ?ƥ????꡼?????󶡤????Ǥ??ᤤ?ͤ?ξ?????֤??? ?ͤϡ??????? result_format ?ǻ??ꤷ???ե????ޥåȤ??֤????롣 ????̾???Υ??󥳡??ǥ??󥰤??ۥ??ȥݡ????֥?ʸ?????󥳡??ǥ??󥰤Ǥʤ? ???硢???̤ϼ?????¸?Ǥ??롣 ??ʸ???Ǥ⾮ʸ???Ǥ????̤?Ʊ???Ǥ??롣 XcmsLookupColor ?ϡ?̾???????褹?뤳?Ȥ??Ǥ????? XcmsSuccess ?ޤ??? XcmsSuccessWithCompression ???֤????????Ǥʤ??????ˤ? XcmsFailure ???֤??? XcmsSuccessWithCompression ???֤??줿???硢color_screen_return ???֤?????ɽ???ϥ????åȰ??̤????? ?̤Ǥ??롣

?֤???

?????? Colormap ???ͤ????????????Ƥ??? Colormap ???ؤ??Ƥ??ʤ???
???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?򵯤??????Ȥ? ???롣

??Ϣ????

XcmsAllocColor(3X11), XcmsStoreColor(3X11), XQueryColor(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11