createForControl Method

Summary

Creates a new instance of ImageViewerRenderEventArgs from the specified HTML5 Canvas Element.

Syntax

JavaScript Syntax
createForControl = function(control) 
TypeScript Syntax
static createForControl(control: HTMLCanvasElement): ImageViewerRenderEventArgs; 

Parameters

control

Valid HTML5 Canvas Element.

Return Value

The created object.

Remarks

Use this method to create an instance of ImageViewerRenderEventArgs from a canvas. Internally, this method will use getContext("2d") and uses the returned value to initialize the other members of the class.

You must call DestroyForControl when you are finished with the object.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly