HighTechTalks DotNet Forums  

CustomLineCap

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss CustomLineCap in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Sam
 
Posts: n/a

Default CustomLineCap - 09-02-2005 , 02:03 AM






Hi All

Would anyone tell me how to fill my custom arrow line cap? Below is my
graphicspath

Dim ArrowLnCap As New GraphicsPath

ArrowLnCap.AddLine(0, 0, -3, -4)

ArrowLnCap.AddLine(0, 0, 3, -4)

ArrowLnCap.AddLine(-3, -4, 3, -4)



Can I fill my CustomLineCap (my custom arrowhead) with the below statement?

Dim EndCap As New CustomLineCap(ArrowLnCap, Nothing)

DwgPen.CustomEndCap = EndCap



Regards,

Sam





Reply With Quote
  #2  
Old   
Andrew Kirillov
 
Posts: n/a

Default Re: CustomLineCap - 09-02-2005 , 05:56 AM






Hello

You need to use Graphics.FillRegion(brush, new Region(graphicsPath));

--
With best regards,
Andrew

http://www.codeproject.com/script/profile/whos_who.asp?id=1181072


"Sam" <qdo (AT) datawave (DOT) ca> wrote

Quote:
Hi All

Would anyone tell me how to fill my custom arrow line cap? Below is my
graphicspath

Dim ArrowLnCap As New GraphicsPath

ArrowLnCap.AddLine(0, 0, -3, -4)

ArrowLnCap.AddLine(0, 0, 3, -4)

ArrowLnCap.AddLine(-3, -4, 3, -4)



Can I fill my CustomLineCap (my custom arrowhead) with the below
statement?

Dim EndCap As New CustomLineCap(ArrowLnCap, Nothing)

DwgPen.CustomEndCap = EndCap



Regards,

Sam







Reply With Quote
  #3  
Old   
Sam
 
Posts: n/a

Default Re: CustomLineCap - 09-03-2005 , 12:33 PM



Hi Andrew,

Thanks for the response. Some how I still did not get my arrow filled
instead my line looks like it has no line cap. Here is what I tried.

Dim ArrowLnCap As New GraphicsPath
ArrowLnCap.AddLine(0, 0, -3, -4)
ArrowLnCap.AddLine(0, 0, 3, -4)
ArrowLnCap.AddLine(-3, -4, 3, -4)

MyGraphicsObj.FillRegion(MySolidBrush, New Region(ArrowLnCap))
Dim EndCap As New CustomLineCap(ArrowLnCap, Nothing)
DwgPen.CustomEndCap = EndCap

Regards,

Sam


"Andrew Kirillov" <andrew.kirillov (AT) gmail (DOT) com> wrote

Quote:
Hello

You need to use Graphics.FillRegion(brush, new Region(graphicsPath));

--
With best regards,
Andrew

http://www.codeproject.com/script/profile/whos_who.asp?id=1181072


"Sam" <qdo (AT) datawave (DOT) ca> wrote in message
news:O4bz1x4rFHA.4040 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Hi All

Would anyone tell me how to fill my custom arrow line cap? Below is my
graphicspath

Dim ArrowLnCap As New GraphicsPath

ArrowLnCap.AddLine(0, 0, -3, -4)

ArrowLnCap.AddLine(0, 0, 3, -4)

ArrowLnCap.AddLine(-3, -4, 3, -4)



Can I fill my CustomLineCap (my custom arrowhead) with the below
statement?

Dim EndCap As New CustomLineCap(ArrowLnCap, Nothing)

DwgPen.CustomEndCap = EndCap



Regards,

Sam









Reply With Quote
  #4  
Old   
James Westgate
 
Posts: n/a

Default Re: CustomLineCap - 09-05-2005 , 09:36 AM



I believe it is the second parameter instead of the first on the
constructor.

Dim EndCap As New CustomLineCap(Nothing, ArrowLnCap)

James
http://www.crainiate.net


Sam wrote:
Quote:
Hi All

Would anyone tell me how to fill my custom arrow line cap? Below is my
graphicspath

Dim ArrowLnCap As New GraphicsPath

ArrowLnCap.AddLine(0, 0, -3, -4)

ArrowLnCap.AddLine(0, 0, 3, -4)

ArrowLnCap.AddLine(-3, -4, 3, -4)



Can I fill my CustomLineCap (my custom arrowhead) with the below statement?

Dim EndCap As New CustomLineCap(ArrowLnCap, Nothing)

DwgPen.CustomEndCap = EndCap



Regards,

Sam





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.