Draws the outline of the specified geometry using the specified D2DPen.
pen
D2DPen that determines the Pen brush, thickness, and style.
geometry
The System.Windows.Media.Geometry to draw. Both geometry.Bounds.Width and geometry.Bounds.Height must be greater than or equal to 1.0 to avoid an ArgumentOutOfRangeException when drawing custom annotations.
This method draws the outline of the specified geometry using the specified Pen style.