ImageLoader Class Members

Summary

The following tables list the members exposed by ImageLoader.

Public Constructors

Name Description
Public Constructor static  | Shared in VB ImageLoader Initializes a new ImageLoader.

Public Methods

Name Description
Public Method abort Aborts the current ImageLoader while guaranteeing that callbacks for Done, Fail, and Always will not be run.
Public Method dispose Clears the ImageLoader instance.
Public Method run Runs the ImageLoader.

Public Properties

Name Description
Public Property ajaxOptions An ImageLoaderAjaxOptions object to use when loading an image via AJAX.
Public Property ajaxWithCredentials Indicates whether to send credentials with the XMLHttpRequest for an image.
Public Property canRun Indicates whether the ImageLoader instance can be run.
Public Property element The loaded image element, when Run is successful.
Public Property error An error describing the reason for the image load failure from Run.
Public Property height The height of the successfully loaded Element.
Public Property imagesHolder The HTML Element to use for temporary image loading, when necessary.
Public Property imgCrossOrigin Indicates how to handle cross-origin image requests.
Public Property isAborted Indicates that the ImageLoader has been aborted.
Public Property isHTMLImageElement Indicates if Element exists and is an HTMLImageElement.
Public Property isWorking A boolean indicating whether the ImageLoader is trying to load an image.
Public Property processAjaxData A callback used to access binary data from an ImageLoaderUrlMode.ajaxDataUrl response.
Public Property tag A reference object to distinguish ImageLoader instances.
Public Property url The URL to load for the image request.
Public Property urlMode Represents the type of loading that will occur when Run is called.
Public Property width The width of the successfully loaded Element.
Public Property workingImageElement The HTMLImageElement used in the image request.
Public Property xhr The XMLHttpRequest object used in the image data request.

Public Events

Name Description
Public Event static  | Shared in VB always Occurs after either the Done or Fail event handlers have fired.
Public Event static  | Shared in VB done Occurs when the image has loaded successfully.
Public Event static  | Shared in VB fail Occurs when the image has failed to load.
Public Event static  | Shared in VB preRun Occurs when the Run method is called, sending out ImageLoaderPreRunEventArgs.
Public Event static  | Shared in VB PreSend Occurs before an image request is made, sending out ImageLoaderPreSendEventArgs.

Public Fields

Name Description
Public Field static  | Shared in VB DefaultAjaxWithCredentials Indicates the default for AjaxWithCredentials.
Public Field static  | Shared in VB DefaultImgCrossOrigin Indicates the default for ImgCrossOrigin.

See Also

ImageLoader Class

Leadtools Namespace

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.