attach

Summary

Attaches this rendering engine to a container and a canvas context 2d.

Syntax
TypeScript
JavaScript
AnnHtml5RenderingEngine.prototype.attach = function( 
   container, 
   context 
) 
attach( 
   container: AnnContainer, 
   context: CanvasRenderingContext2D 
): void; 

Parameters

container

The annotation container that contains the objects to draw.

context

The destination canvas context 2d to render the annotations to.

Remarks

After this method is called, the render method will draw all the objects in container into the destination graphics context (context) using the AnnContainerMapper set in AnnContainer.Mappper.

When rendering is done, you can call detach to remove the coupling between the engine and container/context.

Requirements

Target Platforms

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

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