05-23-2006 10:28 PM
05-24-2006 10:14 AM
Sure. Look at BackgroundImage and PlotAreaImage. PlotAreaImage displays an image only on the plot area.
Scott
05-24-2006 10:44 AM
05-24-2006 04:26 PM
Hey Eeway,
Did you have multiple images on the same graph before? If so how did you do it then. Because the CWGraph is just and activeX control just like it was pre- .NET.
Regards,
05-24-2006 07:36 PM
Hi, Sam,
I used LabWindows before. There is a function called "PlotRectangle" which can be used to plot images.
05-25-2006 10:02 AM
05-25-2006 11:12 AM
05-26-2006 01:05 PM
05-26-2006 04:45 PM - edited 05-26-2006 04:45 PM
You should be able to use XYRangeAnnotation in the .NET graphs to get the behavior you want. You can use the designer to create and configure the annotations. Programmatically, you can use FillStyle.FromImage() to set the XYRangeAnnotation.RangeFillStyle property to the image of your choice. For example,
xyRangeAnnotation1.RangeFillStyle = FillStyle.FromImage(imageList1.Images[0], ImageAlignment.Stretch);
The graph automatically handles zooming, panning, etc. of annotations.
The attached .zip file contains a Visual Studio 2003 project that shows how this is done. The project uses Measurement Studio 8.0.1. If you have an earlier version of Measurement Studio, you will need to re-add the references to the Measurement Studio libraries and (possibly) refresh the license files.
Message Edited by drohacek on 05-26-2006 04:46 PM
05-26-2006 08:56 PM