Hi everyone! I am using the "FillSceneGraph" event to add new chart elements and to edit the existing ones to get a new chart type layout that Infragistics doesn't provite by default. Everything works fine here. The problem occures when I am trying to save the chart's output as an image with SaveTo(MemoryStream, ImageForma.BMP) method. It seems to me that calling this method renders again the entire chart without triggering the "FillSceneGraph" event, so my code, that should format the chart's layout, is not executed.
You can see in the attachment image how the charts looks on both the screen and the image versions.
How can I fix this?
Thanks!
[Later edit]
It seems that the "FillSceneGraph" event is not fired when I call the SateTo method, if the chart is not added on a form, before filling it with data. I create some charts only to export them as images, without showing them on forms.
I use Infragistics for .NET v7.3
Another issue: It seems that SaveTo(Stream, ImageFormat, Size, SizeF) doesn't resize the outputted chart to fit the specified image size!
The fix for the problem with FillSceneGraph event will be available in the next hotfix. Unfortunately, the only workaround for this is to use a custom layer until the hotfix comes out.
I can't seem to reproduce your last problem. The chart image does resize when I use different values for Size and SizeF. There are certain parts of the chart that will not be affected by the image size (such as pixel-based Extents, or anything pixel-based), but should be affected by resolution.