draw Method

Summary

Draws the reference line using the specified parameters.

Syntax
TypeScript
JavaScript
draw = function( 
   context, 
   displayRect, 
   imageRect, 
   line, 
   lineNumber 
) 
static draw( 
   context: CanvasRenderingContext2D, 
   displayRect: LeadRectD, 
   imageRect: LeadRectD, 
   line: LeadLine, 
   lineNumber: string 
): boolean; 

Parameters

context

The context used to draw the reference line.

displayRect

The clipping rectangle.

imageRect

The real image dimensions.

line

The line to draw.

lineNumber

A number used to write next to the line.

Return Value

true if the reference line has been drawn successfully, false otherwise.

Remarks

To generate the reference line, refer to Find.

Requirements

Target Platforms

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

Leadtools.Controls.Medical Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.