Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
290
Show image in teh chart
posted

2 questions,

1. How can I display an image as an overlay in the chart?

2. How to copy to clipboard current chart image as it is seen on the screen? 

Thx

  • 21795
    Offline posted

    Hello Mitja,

    Please find bellow answers to your questions:

    • How can I display an image as an overlay in the chart? – you can add image to your chart through FillSceneGraph event. Handle this event, add ChartImage primitive and set its bounds and image properties. You can also add image to most of chart primitives, e.g. to a Box, via its paint element’s FillImage property. Note that you will also need to set ElementType to Image. You can use code like this:

      boxPrimitive.PE.FillImage = myImage;
      boxPrimitive.PE.ElementType = PaintElementType.Image
    • How to copy to clipboard current chart image as it is seen on the screen? – UltraChart expose Image property. This property will give you an image of the chart as it seen on the screen. You can also try SaveTo method, which allows you to save the chart to an image file or to a stream.

    Please let me know if you have any additional questions on this matter.