createForControl Method

Summary

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

Syntax
TypeScript
JavaScript
createForControl = function( 
   control 
) 
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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

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