Class: ImageManager

ImageManager()

new ImageManager()

The static class that loads images, creates bitmap objects and retains them.
Properties:
Name Type Description
cache CacheMap [static]
cache CacheMap [static]
_imageCache ImageCache [static]
_requestQueue RequestQueue [static]
_systemReservationId Number [static]

Methods

(static) clear()

Clears the image cache in RPGMakerMV.

(static) clearRequest()

(static) isBigCharacter(filename) → {Boolean}

Returns true if the given filename is a large character. Must contain a '$' in the file name to be a large character.
Parameters:
Name Type Description
filename String
Returns:
Type
Boolean

(static) isObjectCharacter(filename) → {Boolean}

Returns true if the given filename is an object character. Must contain a '!' in the file name to be an object character.
Parameters:
Name Type Description
filename String
Returns:
Type
Boolean

(static) isReady() → {Boolean}

Returns true if the image cache is ready.
Returns:
Type
Boolean

(static) isZeroParallax(filename) → {Boolean}

Parameters:
Name Type Description
filename String
Returns:
Type
Boolean

(static) loadAnimation(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/animations/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadBattleback1(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/battlebacks1/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadBattleback2(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/battlebacks2/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadBitmap(folder, filename, hue, smooth) → {Bitmap}

Loads a Bitmap object from any folder and returns it.
Parameters:
Name Type Description
folder String
filename String
hue Number
smooth Boolean
Returns:
Type
Bitmap

(static) loadCharacter(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/characters/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadEmptyBitmap(path, hue) → {Bitmap}

Loads an empty Bitmap object and returns it.
Parameters:
Name Type Description
path String
hue Number
Returns:
Type
Bitmap

(static) loadEnemy(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/enemies/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadFace(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/faces/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadNormalBitmap(path, hue) → {Bitmap}

Loads a Bitmap object given a path and returns it.
Parameters:
Name Type Description
path String
hue Number
Returns:
Type
Bitmap

(static) loadParallax(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/parallaxes/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadPicture(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/pictures/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadSvActor(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/sv_actors/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadSvEnemy(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/sv_enemies/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadSystem(filename, hueopt) → {Bitmap}

Loads a Bitmap object from 'img/system/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadTileset(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/tilesets/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadTitle1(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/titles1/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) loadTitle2(filename, hueopt) → {Bitmap}

Loads a Bitmap object from the 'img/titles2/' folder and returns it.
Parameters:
Name Type Attributes Description
filename String
hue Number <optional>
Returns:
Type
Bitmap

(static) releaseReservation(reservationId)

Parameters:
Name Type Description
reservationId Number

(static) requestAnimation(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestBattleback1(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestBattleback2(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestBitmap(folder, filename, hue, smooth) → {Bitmap}

Parameters:
Name Type Description
folder String
filename String
hue Number
smooth Boolean
Returns:
Type
Bitmap

(static) requestCharacter(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestEnemy(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestFace(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestNormalBitmap(path, hue) → {Bitmap}

Parameters:
Name Type Description
path String
hue Number
Returns:
Type
Bitmap

(static) requestParallax(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestPicture(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestSvActor(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestSvEnemy(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestSystem(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestTileset(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestTitle1(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) requestTitle2(filename, hue) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
Returns:
Type
Bitmap

(static) reserveAnimation(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveBattleback1(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveBattleback2(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveBitmap(folder, filename, hue, smooth, reservationId) → {Bitmap}

Parameters:
Name Type Description
folder String
filename String
hue Number
smooth Boolean
reservationId Number
Returns:
Type
Bitmap

(static) reserveCharacter(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveEnemy(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveFace(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveNormalBitmap(path, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
path String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveParallax(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reservePicture(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveSvActor(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveSvEnemy(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveSystem(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveTileset(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveTitle1(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) reserveTitle2(filename, hue, reservationId) → {Bitmap}

Parameters:
Name Type Description
filename String
hue Number
reservationId Number
Returns:
Type
Bitmap

(static) setDefaultReservationId(reservationId)

Parameters:
Name Type Description
reservationId Number

(static) update()