I have read your response, i am using version 5.1.0.51 of syncfusion and it seems that 'bounds' is not valid on a bitmap node!
and thus i cannot use:
bmpnode As BitmapNode = New BitmapNode("..\..ature.jpg")
bmpnode.Bounds = New RectangleF(60,40,60,40)<
>Hi Robin,
If you want to add an image to the symbol then you can add the BitmapNode in MySymbol class. Please refer to the following code snippet
Me.outerRect = New Syncfusion.Windows.Forms.Diagram.Rectangle(0, 0, 120, 80)
Me.outerRect.Name = "Rectangle"
Me.outerRect.FillStyle.Type = Syncfusion.Windows.Forms.Diagram.FillStyleType.LinearGradient
Me.outerRect.FillStyle.ForeColor = System.Drawing.Color.Orange
Me.outerRect.FillStyle.Color = Color.Orange
Me.outerRect.ShadowStyle.Visible = True
Me.AppendChild(outerRect)
Dim bmpnode As BitmapNode = New BitmapNode("..\..ature.jpg")
bmpnode.Bounds = New RectangleF(60,40,60,40)
bmpnode.Name="Image"
Me.AppendChild(bmpnode)
I have attached the sample for your reference. You can download the sample from the following page.
http://websamples.syncfusion.com/samples/Diagram.Windows/F60786/main.htmPlease refer to the sample and let me know if you have any questions
Regards,
Nagaraj