Xor operation

Hi,

I need to draw elements of feedback with the user as marquee of selection, mouse cursors , etc… I do not want to render all drawing to each movement of mouse. Exists some more performatic alternative, as xor operation (to invert pixels)?

thanks