re question regarding overlaying of graphics let s say i have two rectangles on the canvas see above one intersecting the other now i would like to delete one of the rectangles the way i do it is to create another gc wherein i use the gxxor logical function and simply redraw the rectangle using the newly created graphics context thus deleting it for all apparent purposes a problem with this approach is that at the points of intersection the pixel locations belonging to the other rectangle also become white which is something that should be avoided you could set up a bitmap with a mask in it clear the bitmap draw the rectangle to be deleted with gxor draw the one that is to stay with gxclear then gxxor the entire pixmap with the screen note that this is a pretty effective way of animation if you ever need to do that replace the gxclear with a gxxor joe hildebrand hildjj fuentez com software engineer fuentez systems concepts standard disclaimers apply
