trying to draw a dotted line with an end cap arrow like shown below:
image.png (227 Bytes)
here’s the code i am using:
License oLic = new License();
oLic.SetLicense(“Aspose.Total.lic”);
Bitmap oImage = new Bitmap(100, 100);
Graphics g = Graphics.FromImage(oImage);
SolidBrush oLineBrush = new SolidBrush(Color.Blue);
Pen myPen = new Pen(oLineBrush, 3f);
myPen.DashStyle = DashStyle.Dash;
GraphicsPath oPath = new GraphicsPath();
oPath.AddLine(new Point(50, 5), new Point(50, 75));
Pen oTempConnPen = (Pen)myPen.Clone();
AdjustableArrowCap oEndArrow = new AdjustableArrowCap(5, 5);
oTempConnPen.StartCap = LineCap.ArrowAnchor;
g.DrawPath(oTempConnPen, oPath);
g.Save();
oImage.Save(@"c:\temp\dw.png");
What aspose draws is the following:
image.png (10.2 KB)