Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Controls)

CreateForControl Method

Show in webframe
Valid HTML5 Canvas Element.
Creates a new instance of ImageViewerRenderEventArgs from the specified HTML5 Canvas Element.
Syntax
 function Leadtools.Controls.ImageViewerRenderEventArgs.createForControl( 
   control 
)

Parameters

ParameterTypeDescription
controlCanvasElementValid HTML5 Canvas Element.

Return Value

TypeDescription
ImageViewerRenderEventArgs 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.

See Also

Reference

ImageViewerRenderEventArgs Object
ImageViewerRenderEventArgs Members

Error processing SSI file