|116064||Mar 26,2014 10:52 AM UTC||Mar 28,2014 05:17 AM UTC||ASP.NET MVC (Classic)||2|
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?
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.
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)
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,
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.
or the page will be automatically redirected to sign-in page in 10 seconds.