DrawArc Method

Summary

Draws the outline of an elliptical arc using the specified D2DPen.

Syntax
C#
VB
C++
public void DrawArc( 
   D2DPen pen, 
   Point startPoint, 
   Point endPoint, 
   Size size, 
   SweepDirection sweepDirection, 
   bool isLargeArc 
) 
  
Public Sub DrawArc( _ 
   ByVal pen As D2DPen, _ 
   ByVal startPoint As Point, _ 
   ByVal endPoint As Point, _ 
   ByVal size As Size, _ 
   ByVal sweepDirection As SweepDirection, _ 
   ByVal isLargeArc As Boolean _ 
)  
public: 
void DrawArc(  
   D2DPen^ pen, 
   Point startPoint, 
   Point endPoint, 
   Size size, 
   SweepDirection sweepDirection, 
   bool isLargeArc 
)  

Parameters

pen
A D2DPen that determines the Pen's color, thickness, and style.

startPoint
The starting point where the arc begins.

endPoint
The ending point of the arc.

size
A Size structure that specifies the x- and y-radius of the arc.

sweepDirection
A System.Windows.Media.SweepDirection value that specifies whether to draw the arc in the Clockwise or Counterclockwise direction.

isLargeArc
The value that indicates whether the arc should be greater than 180 degrees. Set it to "true" if the arc should be greater than 180 degrees, and "false" if it should be less than 180 degrees.

Remarks

An elliptical arc is defined by its starting and ending points, x- and y-radius, a value indicating whether the arc should be greater than 180 degrees, and a value describing the direction in which the arc is drawn.

Requirements

Target Platforms

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

Leadtools.Windows.D2DRendering Assembly