drawLine Method

Summary

Renders a line between two points using the previously stroke set for the context.

Syntax
TypeScript
JavaScript
AnnObjectRenderer.prototype.drawLine = function( 
   context, 
   startX, 
   startY, 
   endX, 
   endY 
) 
drawLine( 
   context: CanvasRenderingContext2D, 
   startX: number, 
   startY: number, 
   endX: number, 
   endY: number 
): void; // protected 

Parameters

context

The destination HTML 5 canvas context 2D object to use when rendering the line.

startX

The X-axis of the starting point of the line.

startY

The Y-axis of the starting point of the line.

endX

The X-axis of the ending point of the line.

endY

The Y-axis of the ending point of the line.

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.Annotations.Rendering.JavaScript Assembly