API Documentation for: 0.6.0
Show:

ImageLoader Class

Defined in: ImageLoader:37
Module: PreloadJS

A loader for image files.

Constructor

ImageLoader

(
  • loadItem
  • preferXHR
)

Defined in ImageLoader:37

Parameters:

Item Index

Methods

Properties

Methods

_formatResult

(
  • loader
)
HTMLImageElement private

Defined in _formatResult:119

The result formatter for Image files.

Parameters:

Returns:

HTMLImageElement:

canLoadItem

(
  • item
)
Boolean static

Defined in canLoadItem:75

Determines if the loader can load a specific item. This loader can only load items that are of type IMAGE.

Parameters:

  • item LoadItem | Object

    The LoadItem that a LoadQueue is trying to load.

Returns:

Boolean:

Whether the loader can load the item.

Properties

_updateXHR

Unknown private

Defined in _updateXHR:104

Before the item loads, set its mimetype and responseType.

Sub-properties: