Class Index | File Index

## Classes

- _global_
- jQuery.fn.minplayer
- minplayer.async
- minplayer.compatibility
- minplayer.display
- minplayer.file
- minplayer.flags
- minplayer.image
- minplayer.players.base
- minplayer.players.flash
- minplayer.players.html5
- minplayer.players.minplayer
- minplayer.players.vimeo
- minplayer.players.youtube
- minplayer.plugin

# Class minplayer.image

A class to easily handle images.
Defined in: minplayer.image.js.

Class Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| minplayer.image(context, options)

Field Summary
Field Attributes | Field Name and Description
--- | ---
| constructor Reset the constructor.
| loader The loader for the image.

Method Summary
Method Attributes | Method Name and Description
--- | ---
| clear(callback) Clears an image.
| construct()
| load(src) Loads an image.
| onResize()
| resize(width, height) Resize the image provided a width and height or nothing.

Class Detail
minplayer.image(context, options)

Parameters:
{object} context
  The jQuery context.
{object} options
  This components options.

Field Detail
constructor
Reset the constructor.

loader
The loader for the image.
Method Detail
clear(callback)
Clears an image.

Parameters:
{function} callback
  Called when the image is done clearing.

construct()

See:
  minplayer.plugin.construct

load(src)
Loads an image.

Parameters:
{string} src
  The source of the image to load.

onResize()

See:
  minplayer.display#onResize

resize(width, height)
Resize the image provided a width and height or nothing.

Parameters:
{integer} width
  (optional) The width of the container.
{integer} height
  (optional) The height of the container.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Oct 04 2012 19:54:20 GMT-0700 (PDT)