You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
419 B
27 lines
419 B
|
|
/*!
|
|
* Canvas - Image
|
|
* Copyright (c) 2010 LearnBoost <tj@learnboost.com>
|
|
* MIT Licensed
|
|
*/
|
|
|
|
/**
|
|
* Module dependencies.
|
|
*/
|
|
|
|
var Canvas = require('../build/default/canvas')
|
|
, Image = Canvas.Image;
|
|
|
|
/**
|
|
* Inspect image.
|
|
*
|
|
* @return {String}
|
|
* @api public
|
|
*/
|
|
|
|
Image.prototype.inspect = function(){
|
|
return '[Image'
|
|
+ (this.src ? ' ' + this.src : '')
|
|
+ (this.complete ? ' complete' : '')
|
|
+ ']';
|
|
};
|