473,395 Members | 2,796 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,395 software developers and data experts.

GraphicsPath border question (DrawPath)

Hello.

I have a question concerning the Graphics.DrawPath method.
Where is the border drawn using a pen with the size of 3?

It doesn´t seem that the border is drawn outside of the path (just a
rectangle in my case) or completely inside the path.
For me it looks like this with b=border and p = path:

b
bp (overlapping)
bp (overlapping)
p
p

Unfortunately I have nothing found searching the MSDN or the net.
Thanks for any trustable resources or help!

Greetings,
Tim.
Nov 16 '05 #1
3 4261
Hi Tim,

Try specifying the Pen's PenStyle before using it.

--
Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
My bad, PenStyle should of course be Pen.Alignment :P.

That said, I'm not sure how you can manage an overlap on a simple rectangle. Are you sure you set the points correctly?

--
Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #3
Thanks for answering!
I?ll have a look at the different pen styles...

Greetings,
Tim.

"Morten Wennevik" <Mo************@hotmail.com> schrieb im Newsbeitrag
news:opr9bkh5kpklbvpo@morten_x.edunord...
My bad, PenStyle should of course be Pen.Alignment :P.

That said, I'm not sure how you can manage an overlap on a simple rectangle. Are you sure you set the points correctly?
--
Happy coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #4

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

Similar topics

1
by: Dave | last post by:
I've got a PictureBox where the end user can draw rectangles, lines, ellipses and freehand on an image. Everything works fine, except for an occasional OutOfMemoryException. It only occurs when...
11
by: Altramagnus | last post by:
I have a complicated Region object, which I need to draw the outline, but not fill How can I convert the Region object to GraphicsPath object? or How can I draw the outline of the Region object?
6
by: Altramagnus | last post by:
I have n number of circles. Some of them might overlap. I need to draw the outline of all circles but not those overlap areas. Initially, I am try to use a Region, because a Region object has a...
1
by: jay | last post by:
I have a bitmap and a graphicspath object. I draw pixels on m_Bitmap and I'm drawing text using m_Graphics GraphicsPath object. However, saving my work with m_Bitmap.Save doesn't save...
0
by: jay | last post by:
Hi! I'm using this code to add text to the GraphicsPath m_Gpath: m_Gpath.AddString(m_objectLabel, otherFont.FontFamily, (int)otherFont.Style, (int)otherFont.Size, new Point(m_MouseX,...
7
by: Crirus | last post by:
Hi Is that true that this IsVisible method is incredible slow? Seems that my app is much slower with only this added as a condition to draw something Crirus
0
by: Miro | last post by:
Hello! I have a webpage (FW1.1) in which some heavy drawing takes place (code behind). In some cases I call the DrawPath(...) function 20 000-30 000 times. This works well everywhere except in...
0
by: cmbardon | last post by:
I'm trying to create a form with some rounded controls, and I'm having some problems with the rounding not working correctly. I've tried a couple of different methods for creating the graphics...
2
by: Martijn Mulder | last post by:
/* GraphicsPath.IsVisible() gives unexpected results. I fill a System.Drawing.Drawing2D.GraphicsPath-object with PointF-structures that define the unit-square (0,0), (1,0), (1,1) and (0,1). Then I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.