draw Method

Summary

Draws the shutter object to the associated 2D Canvas Rendering Context. Extends the Drawable base class.

Syntax

TypeScript
JavaScript
ShutterObject.prototype.draw = function( 
	item , 
	context , 
	rect  
) 
      draw(item: lt.Controls.ImageViewerItem, context: CanvasRenderingContext2D, rect: lt.LeadRectD): void; 

Parameters

item

An lt.Controls.ImageViewerItem value that references the image viewer item to draw the shutter object to.

context

A CanvasRenderingContext2D value that references the target canvas to draw to its surface associated with the medical viewer.

rect

An lt.LeadRectD value that references the bounding area to draw the shutter object on the surface of the context, associated with the item.

Remarks

The draw method dims everything except the areas inside the annotation objects. The annotation objects are added to the ShutterObject.objects of type LeadCollection.

Requirements

Target Platforms

See Also

ShutterObject

ShutterObject Members

Leadtools.Controls.Medical Namespace

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.