XOR Operation
-
HI, I'm using GDI+ to draw curves and i want to erase them too, typically in GDI i would have used SetROP2 using R2_XORPEN but i dont find any such thing in GDI+ can anyone help me out erase a particular drawing say a circle or rectangle etc.. instead of erasing and redrawing the whole screen any help would be greatly appreciated.
-
HI, I'm using GDI+ to draw curves and i want to erase them too, typically in GDI i would have used SetROP2 using R2_XORPEN but i dont find any such thing in GDI+ can anyone help me out erase a particular drawing say a circle or rectangle etc.. instead of erasing and redrawing the whole screen any help would be greatly appreciated.
Yes , Thre is not any raster operation in GDI+! If you are drawing the curve pixel by pixel, add the pixels behind the curve to a list, and redraw them after. else redraw only the rect that covers by the curve. but somewhere I have read that It may be better to switch back to GDI somtimes;) Kamyar Souri Booria CAD/CAM Systems www.booria.com