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
|
Hi! I would like to know if it's possible to export a scatter chart to an image like .png, .jpg, .bmp or other format. This is a functionality very important to us. Best regards, Raphaela. |
|
|
Hello Raphaela The only way we know of doing this is to use a RenderTargetBitmap to take a fully loaded control and produce a bitmap. Then use a BitmapEncoder (png, jpg or bmp) to save the result to a file stream. If you want the exported image to look exactly the same as the chart displayed to the user in your application (same dimensions and styles). Then perform the above description on the Chart control instance to save the image. If however you want the resulting image to be a different size, then it is a bit more tricky. In this case you'd generally create an invisible window to host a new Chart control and make it look eaxactly like you want the image to look. Then use a Dispatcher to ensure that it fully loads the chart, and then perform the above steps on that Chart instance to produce the image. If you need to take this route, there is code at the end of this forum post that others have successfully used to do this: http://www.mindscapehq.com/forums/thread/314475 Let me know if you have any questions. -Jason Fauchelle |
|