Scroll to navigation

XPutImage(3X11) XLIB FUNCTIONS XPutImage(3X11)

̾??

XPutImage, XGetImage, XGetSubImage - ???᡼??ž??

????

XPutImage(display, d, gc, image, src_x, src_y, dest_x, dest_y, width, height)
Display *display;
Drawable d;
GC gc;
XImage *image;
int src_x, src_y;
int dest_x, dest_y;
unsigned int width, height;

XImage *XGetImage(display, d, x, y, width, height, plane_mask, format)
Display *display;
Drawable d;
int x, y;
unsigned int width, height;
unsigned long plane_mask;
int format;

XImage *XGetSubImage(display, d, x, y, width, height, plane_mask, format, dest_image, dest_x,
dest_y)
Display *display;
Drawable d;
int x, y;
unsigned int width, height;
unsigned long plane_mask;
int format;
XImage *dest_image;
int dest_x, dest_y;

??????

?ɥ??????֥??????ꤹ?롣
ž?????Υ??᡼???????ꤹ?롣

x, y ??ɸ?????ꤹ?롣 ?????ϥɥ??????֥??θ??????Ф??????к?ɸ??ɽ?????륵?֥??᡼???κ?ɸ???? ž??????Ĺ?????θ??????Ф??????к?ɸ?ǡ????κ??????κ?ɸ?????ꤷ?? ???֥??᡼????ž???襤?᡼???Τɤ??????֤????뤫???????롣
X ?????Фؤ???³?????ꤹ?롣
???᡼???Υե????ޥåȤ????ꤹ?롣 XYPixmap ???뤤?? ZPixmap ?????ꤹ?롣
GC ?????ꤹ?롣
Ĺ?????˥??ԡ????륤?᡼???????ꤹ?롣
?ץ졼???ޥ????????ꤹ?롣
XImage ??¤?Τ??????????Ƥ??륤?᡼???κ?ü?????? X ?????ؤΥ??ե??åȤ????ꤹ?롣
XImage ??¤?Τ??????????Ƥ??륤?᡼???ξ?ü?????? Y ?????ؤΥ??ե??åȤ????ꤹ?롣

???֥??᡼???????ȹ⤵?????ꤹ?롣 ??????Ĺ???????礭???????????롣

x, y ??ɸ?????ꤹ?롣 ?????ϥɥ??????֥??θ??????Ф??????к?ɸ?ǡ?Ĺ?????κ??????????????롣

????

?ؿ? XPutImage ?ϻ??ꤷ???ɥ??????֥???Ĺ?????ΰ??˥??᡼???򥳥ԡ????롣 ?????? src_x, src_y, with, height ?ˤ??ä????????줿???᡼???ΰ??ϡ? ?ɥ??????֥??λ??ꤷ????ʬ?????褵???롣 XYBitmap ?ե????ޥåȤ??Ѥ??????硢???᡼???ο????? 1 ?Ǥʤ????Фʤ??ʤ??? ?????Ǥʤ????С????顼 BadMatch ?Ȥʤ롣 GC ?????ʿ??ԥ??????ϡ????᡼?????ǥӥåȤ?1????ʬ???б?????ž???????? ??????GC ???طʿ??ԥ??????ϡ??ӥåȤ?0????ʬ???б?????ž?????????????롣 XYPixmap ?? ZPixmap ?ξ????ϡ????᡼???ο????ϥɥ??????֥??ο????Ȱ??פ??Ƥ??ʤ??ƤϤʤ??? ?????????Ǥʤ??????ϡ????顼 BadMatch ?Ȥʤ롣

???᡼????????(?㤨?С?byte_order ?? bitmap_unit)???????Ф??׵᤹???? ???Ȱۤʤ????硢 XPutImage ??Ŭ?ڤ??Ѵ?????ưŪ?˹Ԥ???

???δؿ??ϰʲ??? GC ?????ݡ??ͥ??Ȥ????Ѥ???: function, plane-mask, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask. ?ޤ??????δؿ??ϰʲ??? GC ?⡼?ɰ?¸?????ݡ??ͥ??Ȥ????Ѥ???: foreground, background.

XPutImage ?ϥ??顼 BadDrawable, BadGC, BadMatch, BadValue ?򵯤??????Ȥ????롣

?ؿ? XGetImage ?ϡ? XImage ??¤?ΤؤΥݥ??󥿤??֤??? ???ι?¤?Τϡ??ɥ??????֥??λ??ꤷ??Ĺ?????ΰ??????Ƥ򡢻??ꤷ???ե??? ?ޥåȤ?Ϳ???롣 ?????? format ?? XYPixmap ?ʤ??С????᡼???ϰ????? plane_mask ???Ϥ????ӥåȥץ졼?????????ޤࡣ ?????? plane_mask ?ǥǥ????ץ쥤?Υץ졼???Υ??֥??åȤ????????ꤷ?????? ?ϡ??֤????륤?᡼???ο??????׵ᤷ???ץ졼???ο??ˤʤ롣 ?????? format ?? ZPixmap ?ʤ??С? XGetImage ?ϰ????? plane_mask ?ǻ??ꤵ???Ƥ??ʤ????ƤΥץ졼???ΥӥåȤ? 0 ???֤??? ???δؿ??? plane_mask ???ͤ??ϰϥ????å??ϹԤ鷺??̵?ط??ʥӥåȤ?̵?? ???롣

XGetImage ?? XImage ??¤?Τ? depth ?????Ф˥??᡼???ο??????֤??? ???᡼???ο????ϥɥ??????֥뤬???????줿?Ȥ??˻??ꤵ???롣 ?????????????ˤ??㳰?????ꡢ XYPixmap ?ե????ޥåȤΥץ졼???Υ??֥??åȤ????????????ϡ??????? plane_mask ?? ?? 1 ?????åȤ????Ƥ????ӥåȤο??ˤ??ä?Ϳ???????롣

?ɥ??????֥뤬?ԥå????ޥåפλ???Ϳ?????줿Ĺ?????ΰ??ϴ????˥ԥå??? ?ޥå????˴ޤޤ??Ƥ??ʤ????Фʤ??ʤ????????Ǥʤ??????ϡ????顼 BadMatch ?Ȥʤ롣 ?ɥ??????֥뤬???????ɥ??ξ????ϡ????????ɥ???ɽ????ǽ?Ǥʤ????Фʤ餺?? ???̥??????ɥ????Ťʤꤢ?äƤ??륦?????ɥ????ʤ????硢???????ɥ??λ??? ????Ĺ?????ΰ??ϥ????꡼?????Ǵ????˲Ļ????֤ǡ????Τ????????ɥ??γ??? ?˴ޤޤ??Ƥ??ʤ????Фʤ??ʤ????????Ǥʤ??????ϡ????顼 BadMatch ?Ȥʤ롣 ???????ɥ??ζ????Ϥ??Υꥯ?????Ȥǻ??ꤷ?????????뤳?Ȥ???ǽ?Ǥ??????? ???դ??衣 ???????ɥ????Хå??󥰥??ȥ??????äƤ??????硢???̥??????ɥ??Ǥʤ????? ???ɥ??˱??????Ƥ??륦?????ɥ????ΰ????Ф??Ƥϡ??Хå??󥰥??ȥ??????? ???֤????롣 ???????ɥ????Хå??󥰥??ȥ??????äƤ??ʤ????硢???Τ褦?˱??????Ƥ??? ?ΰ??ˤĤ????֤????????Ƥ?̤?????Ǥ??롣 ???ꤷ?????????ɥ??ȤϿ??????ۤʤ벼?̥??????ɥ??βĻ??ΰ??ˤĤ????֤? ???????Ƥ?̤?????Ǥ??롣 ?ݥ??󥿥????????Υ??᡼?????֤????????Ƥˤϴޤޤ??ʤ??? ???꤬?????ä????硢 XGetImage ??NULL???֤???

XGetImage ?ϥ??顼 BadDrawable, BadMatch, BadValue ?򵯤??????Ȥ????롣

?ؿ? XGetSubImage ?ϻ??ꤷ?????֥??᡼?????Ȥ??? XGetImage ??Ʊ?ͤ???ˡ?? dest_image ?????Ƥ򹹿????롣 ?????? format ?? XYPixmap ?ʤ??С????᡼???ϰ????? plane_mask ???Ϥ????ӥåȥץ졼?????????ޤࡣ ?????? format ?? ZPixmap ?ʤ??С? XGetSubImage ?ϰ????? plane_mask ?ǻ??ꤵ???Ƥ??ʤ????ƤΥץ졼???ΥӥåȤ? 0 ???֤??? ???δؿ??? plane_mask ???ͤ??ϰϥ????å??ϹԤ鷺??̵?ط??ʥӥåȤ?̵?? ???롣 XGetSubImage ???ص??? dest_image ?ǻ??ꤵ?줿???Τ?Ʊ?? XImage ?ؤΥݥ??󥿤??֤???

ž?????? XImage ??¤?Το????ϥɥ??????֥??ο?????Ʊ???Ǥʤ????Фʤ??ʤ??? ???ꤷ?????֥??᡼????ž???襤?᡼???λ??????֤????ƤϤޤ??ʤ????硢?? ?Ȳ????դ??????åפ????롣 ?ɥ??????֥뤬?ԥå????ޥåפλ???Ϳ?????줿Ĺ?????ΰ??ϴ????˥ԥå??? ?ޥå????˴ޤޤ??Ƥ??ʤ????Фʤ??ʤ????????Ǥʤ??????ϡ????顼 BadMatch ?Ȥʤ롣 ?ɥ??????֥뤬???????ɥ??ξ????ϡ????????ɥ???ɽ????ǽ?Ǥʤ????Фʤ餺?? ???̥??????ɥ????Ťʤꤢ?äƤ??륦?????ɥ????ʤ????硢???????ɥ??λ??? ????Ĺ?????ΰ??ϥ????꡼?????Ǵ????˲Ļ????֤ǡ????Τ????????ɥ??γ??? ?˴ޤޤ??Ƥ??ʤ????Фʤ??ʤ????????Ǥʤ??????ϡ????顼 BadMatch ?Ȥʤ롣 ???????ɥ????Хå??󥰥??ȥ??????äƤ??????硢???̥??????ɥ??Ǥʤ????? ???ɥ??˱??????Ƥ??륦?????ɥ????ΰ????Ф??Ƥϡ??Хå??󥰥??ȥ??????? ???֤????롣 ???????ɥ????Хå??󥰥??ȥ??????äƤ??ʤ????硢???Τ褦?˱??????Ƥ??? ?ΰ??ˤĤ????֤????????Ƥ?̤?????Ǥ??롣 ???ꤷ?????????ɥ??ȤϿ??????ۤʤ벼?̥??????ɥ??βĻ??ΰ??ˤĤ????֤? ???????Ƥ?̤?????Ǥ??롣 ???꤬?????ä????硢 XGetSubImage ??NULL???֤???

XGetSubImage ?ϥ??顼 BadDrawable, BadGC, BadMatch, BadValue ?򵯤??????Ȥ????롣

?֤???

?????? Drawable ???ͤ????????????Ƥ??? Window ?? Pixmap ???ؤ??Ƥ??ʤ???
?????? GContext ???ͤ????????????Ƥ??? GContext ???ؤ??Ƥ??ʤ???
InputOnly ?Υ??????ɥ??? Drawable ?Ȥ??ƻ??ꤵ?줿??
?????????????????Ȥ????????????ϰϤ????äƤ??뤬???ꥯ?????Ȥ??׵᤹??¾?? ??????Ŭ???Ǥ??ʤ??ä???
???ͤΤ????˥ꥯ?????Ȥε????ϰϤ??ۤ??????Τ????롣?????????Ф????????? ?ϰϤ????ꤵ???Ƥ??ʤ??¤ꡢ???????η??????Ƥ??ϰϤ????????롣???????Ȥ? ?????????줿???????ϡ????Υ??顼?򵯤??????Ȥ????롣

??Ϣ????

Xlib - C Language X Interface

Release 6.5 X Version 11