This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
When we tried to export a diagram to Png (or Jpeg,Bmp) it clears nodes and exports only texts. Expected and exported Diagram is attached to this post. Export code is : DiagramBitmapRenderer.Png.Render(ds, dlg.FileName); What can we do? |
|
|
Hello Unfortunately I haven't been able to reproduce this at my end. Could you please send us a simple repro project so we can look into this issue. Thanks Jason Fauchelle |
|
|
Hello again, I realized that, problem is caused from using DynamicResource in style file. We are changing colours of connections and backgorund colours at runtime. When we turn it to static resource exported png is fine. But both features are required. Is there any restrictions on this? |
|
|
Hello Indeed at the moment the image exporter does not consider dynamic resources. I can look to see if we can add this functionality for you though. To help with this, could you please send us a simple project that demonstrates how you are changing the colours at run time. This does not need to include changing the colours of all different diagramming elements that you're interested in, just 1 or 2 different things so we can test the support for this. Thanks Jason Fauchelle |
|
|
Hi, In attachment i'm sending our style and codebehind. I hope it helps and you find a solution. Regards. |
|
|
Hello Thanks for the code snippets, these helped to find a solution. I have found a way for the DiagramBitmapRenderer to consider dynamic resources. This works well with the code you sent. This can be downloaded through the next nightly build which will be available at around 1200 GMT (about 14 hours from now). Nightly builds can be downloaded from here: http://www.mindscapehq.com/products/wpfdiagrams/nightly-builds Let us know how it goes. Jason Fauchelle |
|
|
Hello again, We have a new problem with long captions of connections. In exported png captions of connections cropped. Is there a solution? In attachments, diagram and exported png illustrated. Regards. |
|
|
Hello Thanks for pointing this out. A fix for this will be available in the next nightly build. This will be available at around 1200 GMT (about 14 hours from now). You can download nightly builds from your account page: http://www.mindscapehq.com/store/myaccount Jason Fauchelle |
|