attach Method (AnnHtml5RenderingEngine)

Summary

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

Syntax

JavaScript Syntax
AnnHtml5RenderingEngine.prototype.attach = function(container, context)
TypeScript Syntax
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 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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Annotations.Rendering Assembly
Click or drag to resize