DrawGeometry Method

Summary
Draws the outline of the specified geometry using the specified D2DPen.
Syntax
C#
VB
C++
public void DrawGeometry( 
   D2DPen pen, 
   Geometry geometry 
) 
  
Public Sub DrawGeometry( _ 
   ByVal pen As D2DPen, _ 
   ByVal geometry As Geometry _ 
)  
public: 
void DrawGeometry(  
   D2DPen^ pen, 
   Geometry^ geometry 
)  

Parameters

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.

Remarks

This method draws the outline of the specified geometry using the specified Pen style.

Requirements

Target Platforms

Help Version 21.0.2021.3.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.D2DRendering Assembly