Can you tell me how to custom a arrow with GDI+
-
I know Pen.CustomLineCap provides the function.But I don't know how to use it. And I tryed to look for some knowledge about this class,but the information is so poor.Can you help me? Thanks!(Please email to me!)
-
I know Pen.CustomLineCap provides the function.But I don't know how to use it. And I tryed to look for some knowledge about this class,but the information is so poor.Can you help me? Thanks!(Please email to me!)
-
Here is an example from MSDN [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDrawingDrawing2DCustomLineCapMethodsTopic.asp](http://
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDrawingDrawing2DCustomLineCapMethodsTopic.asp) Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons
-
I know Pen.CustomLineCap provides the function.But I don't know how to use it. And I tryed to look for some knowledge about this class,but the information is so poor.Can you help me? Thanks!(Please email to me!)
Hi! In order to draw an arrow tip at the beginning or end of a line you'll have to assign the correct
CustomLineCap
to your pen, as you've already found out. For an arrow, this is an instance ofAdjustableArrowCap
. You can control the look of the arrow tip by setting theWidth
,Height
,MiddleInset
,Filled
andWidthScale
properties. Then it's really easy. Regards, mav -
Hi! In order to draw an arrow tip at the beginning or end of a line you'll have to assign the correct
CustomLineCap
to your pen, as you've already found out. For an arrow, this is an instance ofAdjustableArrowCap
. You can control the look of the arrow tip by setting theWidth
,Height
,MiddleInset
,Filled
andWidthScale
properties. Then it's really easy. Regards, mavThank you,I have resolved the problem in your help.:)