DrawReversibleLine

  • Thread starter Thread starter Tim Bücker
  • Start date Start date
T

Tim Bücker

Hello.

Is it possible to use the ControlPaint.DrawReversibleLine only in a panel or
is it always screen-oriented/ Is there a way to clip the drawing region?
Are there any other possibilities to use XOR-Drawing? Perhaps by using a
special pen or something like that?

Thanks for any information about this topic!

Greetings,
Tim.
 
Tim,

Unfortunately, it is always performed in a screen (which I don't like,
personally). You are better off making calls to the API to draw your line
(using the Rectangle API call, setting the brush yourself) or drawing it
yourself using the Graphics class.

Hope this helps.
 
Nicholas Paldino said:
Unfortunately, it is always performed in a screen (which I don't like, personally).
You are better off making calls to the API to draw your line (using the
Rectangle API call, setting the brush yourself)

First of all, thanks a lot for the fast reply!
Are you talking about Win32 API? Because using C# I think it is not possible
to define a XOR brush?!?
or drawing it yourself using the Graphics class.

A XOR-line using the Graphics class - but I think that is not possible?
I don´t want to initiate an invalidate...

Greetings and thanks again,
Tim.
 
Back
Top