PurplePen.CourseObj.EraseHighlight C# (CSharp) Method

EraseHighlight() public method

public EraseHighlight ( Graphics g, Matrix xformWorldToPixel, Brush eraseBrush ) : void
g System.Drawing.Graphics
xformWorldToPixel Matrix
eraseBrush System.Drawing.Brush
return void
        public void EraseHighlight(Graphics g, Matrix xformWorldToPixel, Brush eraseBrush)
        {
            Highlight(g, xformWorldToPixel, eraseBrush, true);

            // Erase any handles we have.
            PointF[] handles = GetHandles();
            if (handles != null) {
                foreach (PointF handleLocation in handles)
                    EraseHandle(handleLocation, g, xformWorldToPixel, eraseBrush);
            }
        }