Scroll to navigation

XStoreColors(3X11) XLIB FUNCTIONS XStoreColors(3X11)

̾??

XStoreColors, XStoreColor, XStoreNamedColor - ???????ꤹ??

????

XStoreColors(display, colormap, color, ncolors)
Display *display;
Colormap colormap;
XColor color[];
int ncolors;

XStoreColor(display, colormap, color)
Display *display;
Colormap colormap;
XColor *color;

XStoreNamedColor(display, colormap, color, pixel, flags)
Display *display;
Colormap colormap;
char *color;
unsigned long pixel;
int flags;

??????

?ԥ??????? RGB ?ͤ???????̾????ɽ??ʸ????(?㤨?? red)?????ꤹ?롣
??Ǽ?????뿧?????Τ????ι?¤?Τ??????????ꤹ?롣
???顼?ޥåפ????ꤹ?롣
X ?????Фؤ???³?????ꤹ?롣
RGB ??ʬ?Τɤ줬???ꤵ???뤫?????ꤹ?롣
???????Τ????????????? XColor ??¤?Το??????ꤹ?롣
???顼?ޥå????Υ????ȥ꡼?????ꤹ?롣

????

?ؿ? XStoreColors ?ϡ? XColor ??¤?Τ? pixel ?????Фǻ??ꤵ???Ƥ????ԥ??????ͤΥ??顼?ޥåץ????ȥ꡼ ???ѹ????롣 XColor ??¤?Τ? flag ?????Ф? DoRed, DoGreen, DoBlue ?????ꤹ?뤳?Ȥǡ??ɤο???ʬ???ѹ????뤫???ꤹ?롣 ???顼?ޥåפ??????꡼???˥??󥹥ȡ??뤵???Ƥ????С??ѹ???¨?¤?ɽ???? ȿ?Ǥ????롣 XStoreColors ?ϡ??ԥ????뤬?񤭹??߲?ǽ?ǥ??顼?ޥåפ˳??????Ƥ????Ƥ????С?1?? ?ʾ??Υԥ??????ǥ??顼?ˤʤäƤ⡢???ꤷ???ԥ????????ѹ????롣 ???ꤷ???ԥ????뤬???顼?ޥåפ????????????ǥå????Ǥʤ??????ˤϡ? BadValue ???顼?Ȥʤ롣 ???ꤷ???ԥ????뤬???????Ƥ????Ƥ??ʤ??????ɤ߼??????Ѥdz??????Ƥ????? ?????????ˤϡ? BadAccess ???顼?Ȥʤ롣 1?İʾ??Υԥ????뤬???顼?ˤʤä????硢???顼?Ȥ??????𤵤????ԥ????? ??Ǥ?դǤ??롣

XStoreColors ?ϥ??顼 BadAccess, BadColor, BadValue ?򵯤??????Ȥ????롣

?ؿ? XStoreColor ?ϡ? XColor ??¤?Τ? pixel ?????Фǻ??ꤵ???Ƥ????ԥ??????ͤΥ??顼?ޥåץ????ȥ? ???ѹ????롣 ?????ͤ? XColor ??¤?Τ? pixel ?????Ф˻??ꤹ?롣 ???Υԥ??????ͤ??ɤ߽񤭲?ǽ?ʥ????ǡ????顼?ޥå????????????????ǥå? ???Ǥʤ????Фʤ??ʤ??? ???ꤷ???ԥ????뤬???顼?ޥå????????????????ǥå????Ǥʤ????С? BadValue ???顼?Ȥʤ롣 XStoreColor ?Ͽ???RGB??ʬ???ѹ????롣 XColor ??¤?Τ? flags ?????Ф? ?????ꤹ?뤳?Ȥˤ??ꡢ?ɤο???ʬ???ѹ????뤫???ꤹ?롣 ???顼?ޥåפ??????꡼???˥??󥹥ȡ??뤵???Ƥ????С??ѹ???¨?¤˲??̤? ȿ?Ǥ????롣

XStoreColor ?ϥ??顼 BadAccess, BadColor, BadValue ?򵯤??????Ȥ????롣

?ؿ? XStoreNamedColor ?ϥ??顼?ޥåפ??б????륹???꡼???ˤĤ???̾???ǻ??ꤵ?줿?????䤤???? ???????η??̤????ꤷ?????顼?ޥåפ˳?Ǽ???롣 ?????? pixel ?ϥ??顼?ޥå????Υ????ȥ꡼?????ꤹ?롣 ?????? flags ?ϡ?RGB??ʬ?Τɤ줬???ꤵ???뤫?????ꤹ?롣 ???Υ????Фϥӥå? DoRed, DoGreen, DoBlue ?ˤĤ??ơ??ӥå?ñ?̤??????¤????뤳?Ȥ??????Ǥ??롣 ????̾???Υ??󥳡??ǥ??󥰤??ۥ??ȥݡ????֥?ʸ?????󥳡??ǥ??󥰤Ǥʤ? ???硢?¹Է??̤ϼ?????¸?Ȥʤ롣 ??ʸ???????Ѥ??Ƥ⾮ʸ???????Ѥ??Ƥ????̤?Ʊ???Ǥ??롣 ???ꤷ???ԥ????뤬???顼?ޥåפ????????????ǥå????Ǥʤ??????ϥ??顼 BadValue ?Ȥʤ롣 ???ꤷ???ԥ????뤬???????Ƥ????Ƥ??ʤ??????ɤ߼??????Ѥdz??????Ƥ????? ?????????ˤϡ? BadAccess ???顼?Ȥʤ롣

XStoreNamedColor ?ϥ??顼 BadAccess, BadColor, BadName, BadValue ?򵯤??????Ȥ????롣

?֤???

???饤?????Ȥ??????????Ƥ????Ƥ??ʤ????顼?ޥåץ????ȥ꡼?????????? ???Ȥ?????
?ɤ߼??????ѤΥ??顼?ޥåץ????ȥ꡼?˥??饤?????Ȥ???Ǽ???褦?Ȥ?????
?????? Colormap ???ͤ????????????Ƥ??? Colormap ???ؤ??Ƥ??ʤ???
???ꤵ?줿̾???Υե????Ȥ俧??¸?ߤ??ʤ???
???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ??¤ꡢ???????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?򵯤??????Ȥ? ???롣

??Ϣ????

XAllocColor(3X11), XCreateColormap(3X11), XQueryColor(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11