[Gambas-user] Re ctangle Problem

akiti akitiyadav at ...626...
Fri Aug 5 09:38:00 CEST 2011


Hello. I seem to have reached difficult problem.
How do I draw a filled rectangle that woks in XOR mode. 
i.e does not overwrite the pixels below, but inverts them

Following code does not seem to work

     Paint.Begin(DrawingArea1)
     Paint.Operator = Paint.OperatorXor
     Paint.Brush = Paint.Color(Color.Red)      
     Paint.Rectangle(0, 0, 100, 100)
     Paint.Stroke 

I have some VB6 code using 
Drawmode = vbXorPen
I need it to be converted to gambas
Any help???? Thanks.


-- 
View this message in context: http://old.nabble.com/Rectangle-Problem-tp32180334p32180334.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list