| Leadtools.Controls Namespace > ImageViewerRenderEventArgs Object : CreateForControl Method |
function Leadtools.Controls.ImageViewerRenderEventArgs.createForControl( control )
| Parameter | Type | Description |
|---|---|---|
| control | CanvasElement | Valid HTML5 Canvas Element. |
| Type | Description |
|---|---|
| ImageViewerRenderEventArgs | The created object. |
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.