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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Symbol palette item: image

Thread ID:





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


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 02:48 PM UTC

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 05:17 AM UTC

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon