Access to the Graphics object
Posted: Fri Sep 08, 2006 3:51 pm
Hi,
I'm trying to do custom painting over a chart. I subscribe to the AfterDraw event. If I call chart.CreateGraphics() in my event handler, it works fine but whatever I paint gets painted over (I can see it's there because it flickers as I resize the chart).
The reason I want access to Graphics is that I need to paint a bitmap using InterpolationMode.NearestNeighbor. Graphics3D doesn't seem to support this functionality.
Best,
Michal
I'm trying to do custom painting over a chart. I subscribe to the AfterDraw event. If I call chart.CreateGraphics() in my event handler, it works fine but whatever I paint gets painted over (I can see it's there because it flickers as I resize the chart).
The reason I want access to Graphics is that I need to paint a bitmap using InterpolationMode.NearestNeighbor. Graphics3D doesn't seem to support this functionality.
Best,
Michal