Hello
I'm trying to export shapes to a png file using exportToImage() method in RadDiagram.
However, the generated png image is all black, that is every pixel is black.
The RadDiagram I generated is not in the visual tree.
I did something like this:
Is it because RadDiagram is not in the visual tree? Is there a work around?
Thanks
I'm trying to export shapes to a png file using exportToImage() method in RadDiagram.
However, the generated png image is all black, that is every pixel is black.
The RadDiagram I generated is not in the visual tree.
I did something like this:
var diagram = new RadDiagram();diagram.Load(shapeData);using (FileStream stream = new FileStream("C:\\test\\test-1.png", FileMode.OpenOrCreate, FileAccess.Write)){ diagram.ExportToImage(stream);}Is it because RadDiagram is not in the visual tree? Is there a work around?
Thanks