Hi Aubyn Crawford,
Thanks for using Syncfusion products.
Connectors don't have direct support for adding image to their GraphicsPath instead of Label but it can be achievable. We suggest you to customize a connector and override its render method to achieve your requirement and we have customized the LineConnector to meet your requirement as below. Please refer the below code snippet.
[C#]
//Custom LineConnector
class MyConnector: LineConnector
{
public MyConnector(PointF ptStart, PointF ptEnd)
: base(ptStart, ptEnd)
{
this.LineStyle.LineColor = Color.Orange;
this.LineStyle.LineWidth = 2;
}
protected override void Render(Graphics gfx)
{
base.Render(gfx);
Size size = new Size(16, 16);
PointF[] pts = GetPathPoints();
Bitmap Original = new Bitmap(@"..\\..\\Or.png");
Bitmap bmp = new Bitmap(Original, size);
bmp.MakeTransparent();
Graphics g = Graphics.FromImage(bmp);
//Add image to connector
gfx.DrawImage(bmp,new Point((int)((pts[0].X+pts[1].X)/2 - 8),(int)(pts[0].Y+10)));
}
}
For your convenient, we have created a simple sample to demonstrate this and the same can be downloaded from the below link.
ConnectorWithImage-1281406032.zipKindly try the above sample and let me know if this helps.
Regards,
Pandi Murugan A