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.
Unfortunately, activation email could not send to your email. Please try again.

Image in symbol palette

Thread ID:

Created:

Updated:

Platform:

Replies:

127678 Dec 1,2016 04:37 PM Dec 2,2016 06:15 AM ASP.NET MVC 1
loading
Tags: Diagram
indrani Gajjarapu
Asked On December 1, 2016 04:37 PM

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

Shyam G [Syncfusion]
Replied On December 2, 2016 06:15 AM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;