views:

100

answers:

0

How to disable the gradient blurring of the images displayed using ZedGraph?

I'm creating a plot where I use a bitmap as a background for other curves:

ImageObj img = new ImageObj(someBitmap,
                coords, CoordType.AxisXYScale, AlignH.Center, AlignV.Center);

img.ZOrder = ZOrder.E_BehindCurves;
img.IsClippedToChartRect = true;
pane.GraphObjList.Add(img);

Unfortunately, the edges of image created like that looks as it is shown at the image below.
How to disable this effect? How can I get normal, sharp edges?

alt text