XORing background color

  • Thread starter Thread starter Jonathan Yong
  • Start date Start date
J

Jonathan Yong

I am writing a drawing app in C#. I need to draw a wire frame of the
shape that the user is going to draw when he move his mouse to select
the coordinate. The color of the wire frame need to be XOR to whatever
color that is on the drawing surface. There is no support for this
drawing mode in .NET. Anyone got any workaround ?

Basically I need someting that is equivalant to the SetROP2() in GDI32.
 
You can directly use SetROP2 in c#.

[DllImport("GDI32.DLL")]
public static extern int SetROP2( System.IntPtr hDC, int drawMode )
 
Back
Top