workingImageElement Property

Summary

The HTMLImageElement used in the image request.

Syntax
TypeScript
JavaScript
Object.defineProperty(ImageLoader.prototype, 'workingImageElement', 
	get: function(), 
	set: function(value) 
) 
workingImageElement: HTMLElement; 

Property Value

null by default. Can be set to a custom HTMLImageElement to use for the image request. Otherwise, a new HTMLImageElement will be created as needed.

Remarks

A user can pass their own HTMLImageElement with custom settings. When Run is called and an HTMLImageElement is needed, WorkingImageElement will be set to a new HTMLImageElement if it is null. An HTMLImageElement is only needed when the UrlMode is the default ImageLoaderUrlMode.ImageUrl.

Some attributes of the WorkingImageElement will be set automatically: src will be set from Url, crossOrigin will be set from ImgCrossOrigin, and event handlers will be added to support Done, Fail, and Always.

If making requests using ImageLoaderUrlMode.AjaxXml or ImageLoaderUrlMode.AjaxDataUrl, see Xhr.

See Run for more information.

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 Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.