We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Image in symbol palette

Hi,
I want to place images as nodes in the diagram builder. 
How can I place images in symbol palette!!

1 Reply

SG Shyam G Syncfusion Team December 2, 2016 11:15 AM UTC

Hi Indrani, 

We have created a sample in which we have created an image node and appended in the symbol palette. Please refer to the code example below. 

Code example: 

      ImageNode ImageNode = new ImageNode(); 
            ImageNode.OffsetX = 100; 
            ImageNode.OffsetY = 100; 
            ImageNode.Height = 100; 
            ImageNode.Width = 100; 
            //Sets url of the image 
            ImageNode.Source = "../Content/diagram/images/Transaction.png"; 
            //append nodes into an palette 
            basicShapes.AppendChild(ImageNode); 
 
 

Regards, 
Shyam G 


Loader.
Up arrow icon