createForControl Method (ImageViewerRenderEventArgs)

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

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