PurplePen.CourseObj.DrawHandle C# (CSharp) Method

DrawHandle() private method

private DrawHandle ( PointF handleLocation, Graphics g, Matrix xformWorldToPixel ) : void
handleLocation System.Drawing.PointF
g System.Drawing.Graphics
xformWorldToPixel Matrix
return void
        private void DrawHandle(PointF handleLocation, Graphics g, Matrix xformWorldToPixel)
        {
            const int HIGHLIGHTSIZE = 5;
            Point pixelLocation = Point.Round(Geometry.TransformPoint(handleLocation, xformWorldToPixel));

            Rectangle rect = new Rectangle(pixelLocation.X - (HIGHLIGHTSIZE - 1) / 2, pixelLocation.Y - (HIGHLIGHTSIZE - 1) / 2, HIGHLIGHTSIZE, HIGHLIGHTSIZE);
            g.FillRectangle(Brushes.Blue, rect);
        }