PurplePen.CourseObj.EraseHandle C# (CSharp) Method

EraseHandle() private method

private EraseHandle ( PointF handleLocation, Graphics g, Matrix xformWorldToPixel, Brush eraseBrush ) : void
handleLocation System.Drawing.PointF
g System.Drawing.Graphics
xformWorldToPixel Matrix
eraseBrush System.Drawing.Brush
return void
        private void EraseHandle(PointF handleLocation, Graphics g, Matrix xformWorldToPixel, Brush eraseBrush)
        {
            Point pixelLocation = Point.Round(Geometry.TransformPoint(handleLocation, xformWorldToPixel));

            Rectangle rect = new Rectangle(pixelLocation.X - (HANDLESIZE - 1) / 2, pixelLocation.Y - (HANDLESIZE - 1) / 2, HANDLESIZE, HANDLESIZE);
            g.FillRectangle(eraseBrush, rect);
        }