473,396 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DrawReversibleLine

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.
Nov 16 '05 #1
3 6224
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 [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tim Bücker" <ti*************@web.de> wrote in message
news:cl**********@news.uni-koblenz.de...
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.

Nov 16 '05 #2
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>
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.
"Tim Bücker" <ti*************@web.de> wrote in message
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!

Nov 16 '05 #3
Good article:
http://msdn.microsoft.com/library/de...ui02172004.asp

Greetings,
Tim.
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: T. F. | last post by:
Hi, I need to create a box / field that the user can draw into (with some kind of pen). I also need to know how I can edit the size of the pen style and how I can "transport" the drawn image...
2
by: Tomomichi Amano | last post by:
Hello How can I delete (clear) lines that were made useing Graphics.DrawLine() ? Thanks in advance! Have a nice day!
3
by: °Ë´óɽÈË | last post by:
Hi, I create a graphics object for desktop window by following step: IntPtr hWnd = GetDesktopWindow(); // API Graphics g = Graphics.FromHWnd(hWnd); then draw the screen by g, but I can't draw...
2
by: °Ë´óɽÈË | last post by:
Hi guys, As you know, we can call SetROP2 to set the current foreground mix mode in GDI. But I doesn't work in GDI+. The step is: GetDC --> SetROP2 -->Graphics.FromDC, then draw sth by graphics...
0
by: Rene | last post by:
Anybody knows if .Net 2 will support drawing on XOR mode. I have been using the ControlPaint.DrawReversibleLine functionality but it's really aggravating and you can only do line and squares not...
4
by: Peder Y | last post by:
Hi! My application contains a simple drawing module. The user can draw lines, ellipses and so on. Now, I'm a fan of visual feedback. The user should see the changes he or she does at the very...
2
by: Julie | last post by:
How do you retrieve the visible clipping region for a control? I have a control where I do some on-screen drawing (specifically ControlPaint.DrawReversibleLine()), however I need to clip the line...
3
by: Jacob | last post by:
Hi, Does anyone know how to create a rubber line or something similer? I used to use the Xor drawmode to obtain this functionality (First draw the line on a picture box, then erase it again...
3
by: Brad Rogers | last post by:
All, Being immersed in vb.net and trying CSharp after almost a year I forgot the differences. I like vb fixing the uppercase/lowercase names and seeming to be more flexible to code entry. ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.