Scroll to navigation

XcmsAllocColor(3X11) XLIB FUNCTIONS XcmsAllocColor(3X11)

̾??

XcmsAllocColor, XcmsAllocNamedColor - ???????????Ƥ?

????

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

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

??????

X ?????Фؤ???³?????ꤹ?롣
???顼?ޥåפ????ꤹ?롣
????̾??????Ÿ??????ɽ????????̾?ǡ????١????Ǹ??Ĥ??ä??б?????ʸ???? ????Ÿ???????????꤬?֤????롣
???????Ƥ뿧?????ꤷ?????顼?ޥå????Ǽºݤ˻??Ѥ??????ԥ??????ȿ? ???֤????롣
???顼?????Υԥ??????ͤȡ????Υ????˼ºݤ˳?Ǽ??????ɽ?????֤????롣
??ʸ?????????ꤹ?롣 ???????Ф??뿧??????¤?Τ??֤????롣
?֤?????ɽ?????Ф??뿧?Υե????ޥåȤ????ꤹ?롣

????

?ؿ? XcmsAllocColor ?ϡ? XAllocColor ?Ȼ??Ƥ??뤬??Ǥ?դΥե????ޥåȤ??????Ǥ????????ۤʤ롣 ?ؿ? XcmsAllocColor ?ϡ????ꤷ???????????ɤ߼??????ѤΥ??顼????(???顼?ޥåפΥ????ȥ꡼) ?????????Ƥ뤿?ᡢ?ǽ?Ū?ˤ? XAllocColor ???ƤӽФ??? XcmsAllocColor ?ϡ??ޤ????ꤵ?줿???? RGB ?ͤ??Ѵ????????ˤ??? RGB ?ͤ? XAllocColor ???Ϥ??? XcmsAllocColor ?ϡ??ºݤ˳??????Ƥ??줿???顼?????Υԥ??????ͤ?ɽ???????֤??? ?֤??줿ɽ???ϡ? XAllocColor ???֤???RGB ?ͤ??????? result_format ?ǻ??ꤷ???ե????ޥåȤ??Ѵ??????? ?̤Ǥ??롣 ?֤?????ɽ???????פʾ??硢result_format ?? XcmsRGBFormat ?򥻥åȤ??Ƥ????С????פʷ׻??????򤹤뤳?Ȥ??Ǥ??롣 ???????б????륫?顼?ޥåץ??????ɤ߼??????ѤǤ??롣 ???δؿ??? XcmsFailure ???֤??????硢ɽ?? color_in_out ???ѹ??????ʤ???

XcmsAllocColor ?ϡ????顼 BadColor ?򵯤??????Ȥ????롣

?ؿ? XcmsAllocNamedColor ?? XAllocNamedColor ?˻??Ƥ??뤬???֤????뿧?Υե????ޥåȤ?Ǥ?դ˻????Ǥ????????ۤʤ롣 ???δؿ??ϡ???̾ʸ?????ǻ??ꤷ???????????ɤ߼??????ѤΥ??顼?????? ???????Ƥ뤿?ᡢ?ǽ?Ū?ˤ? XAllocColor ???Ƥ֡? ??̾ʸ?????? XcmsColor ??¤??( XcmsLookupColor ?򻲾?)??Ÿ?????졢RGB?ͤ??Ѵ????졢?Ǹ??? XAllocColor ???Ϥ????롣 ????̾???Υ??󥳡??ǥ??󥰤??ۥ??ȥݡ????֥?ʸ?????󥳡??ǥ??󥰤Ǥʤ? ???硢???̤ϼ?????¸?Ǥ??롣 ??ʸ?????ȤäƤ⾮ʸ?????ȤäƤ????̤??Ѥ????ʤ???

???δؿ??ϡ?Ÿ???η??̤Ȥ??Ƥ?ɽ??(???Τ?ɽ??)?ȼºݤ˳?Ǽ??????ɽ?? (?????꡼??ɽ??)??ξ?????֤??? ???Υ????꡼??ɽ???ϡ? XAllocColor ???֤?RGB?ͤ? result_format ?ǻ??ꤷ???ե????ޥåȤ??Ѵ????????̤Ǥ??롣 ɽ????ɬ?פʤ??????ˤϡ?result_format ?? XcmsRGBFormat ?򥻥åȤ??뤳?Ȥǡ????פʷ׻??????򤹤뤳?Ȥ??Ǥ??롣 color_screen_return ?? color_exact_return ??Ʊ????¤?Τ??ؤ??Ƥ??????硢 pixel ?ե??????ɤ??????????ꤵ???뤬???????ͤ?̤?????Ȥʤ롣

XcmsAllocNamedColor ?ϥ??顼 BadColor ?򵯤??????Ȥ????롣

?֤???

?????? Colormap ???ͤ????????????Ƥ??? Colormap ???ؤ??Ƥ??ʤ???

??Ϣ????

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

Release 6.5 X Version 11