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.

Symbol palette item: image

Thread ID:





116064 Mar 26,2014 06:52 AM Mar 28,2014 01:17 AM ASP.NET MVC (Classic) 2
Tags: Diagram
Asked On March 26, 2014 06:52 AM


Do we have the possibility to add custom images in the symbol palette?

If I insert an image on the diagram, and then do 'add symbol to active pallet' and afterwards export the palette, it gives me an error: The given key was not present in the dictionary

Is their another way to create palette items that are images?



Replied On March 26, 2014 10:48 AM

Ok I managed to create an Image on the palette with following code:

Node bla = new Node();

bla.Shape = Shapes.Image;

bla.Name = "facebook";

Image image = Image.FromFile(context.Server.MapPath("~/Images/facebook.png"));

using (MemoryStream stream = new MemoryStream())





// Save image to stream.

image.Save(stream, ImageFormat.Png);

Bitmap test = new Bitmap(stream);



bla.Image = test;





But now the problem is, when I add the image to the diagram and export it to png or jpg, the diagram is empty (even the gridlines are gone)

Shyam G [Syncfusion]
Replied On March 28, 2014 01:17 AM

Hi Tom,

Thanks for using Syncfusion product.

 Currently we don’t have support to export custom image in JPG,PNG,BMP format.we are using third party library canvg.js  to export Diagram in JPG,PNG,BMP format and it doesn't have support to export custom embedded images.

 Please let me know if any concerns,


Shyam G



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.