Skip to main content

Thread: 2 ?? : erase XDrawRectangle (colour?)?


hi all
1. use code draw on root window, somehow can't work out how erase this.
2. there easy way use colours xdraw...

code:
display *dpy = xopendisplay(null); window win=xdefaultrootwindow(dpy); xmapwindow(dpy,win ); int blackcolor = blackpixel(dpy, defaultscreen(dpy)); gc gc = xcreategc(dpy,win, 0, null); xsetforeground(dpy, gc, blackcolor); xsetsubwindowmode(dpy, gc, includeinferiors); xdrawrectangle(dpy, win, gc, 0,0, 100,100);   xflush(dpy); xclosedisplay(dpy);

.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk 2 ?? : erase XDrawRectangle (colour?)?


Ubuntu

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support