再问一个绘图的问题- using (RasterImageGdiPlusGraphicsContainer container = new RasterImageGdiPlusGraphicsContainer(imageViewer1.Image))
- {
- using (Pen pen = new Pen(Color.Red, 1))
- {
- // use anti-alias lines
- container.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
- container.Graphics.DrawLine(pen, _trackingStartPoint, _trackingEndPoint);
- }
- }
复制代码
我用这个方法在一个图片上画一条直线,有方法可以把这个直线再删掉吗 |