I am wondering if you can place a image registered (x0,y0) upper Left and (x1,y1) lower right in the background and have the bmp, jpg, etc… move with the scaling and scrolling of the chart.
- BHL Boresight asked 8 years ago
- You must login to post comments
Hi Kent,
You can place an image in the background of the chart by using an Annotation. Please see our guide here on creating a CustomAnnotation (X1 Y1 X2 Y2).
My suggestion is to template the BoxAnnotation as in the article above to have an Image at its root.
Next, set X0=XAxis.VisibleRange.Min, X1=XAxis.VisibleRange.Max,
Y0=YAxis.VisibleRange.Min, Y1=YAxis.VisibleRange.Max
This will ensure the image is stretched across the entire viewport of the chart. If you zoom or pan the image will move with the chart.
Is that what you are looking for? Or not quite the right behaviour? If you want the image to stay fixed always in the background of the chart, check out Annotation.CoordinateMode = CoordinateMode.Relative. You can read about CoordinateMode here.
Let me know if this helps!
- Andrew Burnett-Thompson answered 8 years ago
- You must login to post comments
Please login first to submit.