> 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.

Paint.OperatorXor is not the bitwise Xor operator you want. The Paint class 
does not support such an operator. You can use the old Draw class for that.

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to