draw Method

Summary

Draws the cut-line polygon using the provided context on the specified item.

Syntax
TypeScript
JavaScript
CutLines.prototype.draw = function( 
   item, 
   context, 
   rect 
) 
draw( 
   item: ImageViewerItem, 
   context: CanvasRenderingContext2D, 
   rect: LeadRectD 
): void; 

Parameters

item

The item where the panoramic polygon is drawn.

context

The drawing context that is used to draw the polygon.

rect

The rectangle boundaries of the polygon in normalized coordinates that is used to convert the position into a physical position.

Remarks

Draw is used internally by PanoramicCell. Draw a panoramic polygon through the PanoramicAction. To check the panoramic polygon created, use Drawable.

Requirements

Target Platforms

Help Version 23.0.2024.5.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.