public override void Highlight(Graphics g, Matrix xformWorldToPixel, Brush brush, bool erasing)
{
SymPath path1, path2;
float thickness;
GDIPlus_GraphicsTarget grTarget = new GDIPlus_GraphicsTarget(g);
object brushKey = new object();
grTarget.CreateGdiPlusBrush(brushKey, brush, false);
// Get line thickness.
thickness = TransformDistance(NormalCourseAppearance.lineThickness * scaleRatio * appearance.controlCircleSize, xformWorldToPixel);
// Get the paths.
path1 = new SymPath(OffsetCoords(ScaleCoords((PointF[]) coords1.Clone()), location.X, location.Y), kinds1);
path2 = new SymPath(OffsetCoords(ScaleCoords((PointF[]) coords2.Clone()), location.X, location.Y), kinds2);
// Draw the paths
object penKey = new object();
grTarget.CreatePen(penKey, brushKey, thickness, LineCap.Flat, LineJoin.Miter, 5);
path1.DrawTransformed(grTarget, penKey, xformWorldToPixel);
path2.DrawTransformed(grTarget, penKey, xformWorldToPixel);
grTarget.Dispose();
}