GraphicsPath border question (DrawPath)

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

Tim Bücker

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.
 
Hi Tim,

Try specifying the Pen's PenStyle before using it.
 
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?
 
Thanks for answering!
I?ll have a look at the different pen styles...

Greetings,
Tim.

Morten Wennevik said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top