Class: Image

Image()

new Image()

Source:

Methods

(async, static) createObj() → {Promise.<Image>}

构造一个新的 Image 对象。
Source:
Returns:
Type
Promise.<Image>

(async, static) createObjByLocalPath() → {Promise.<Image>}

构造一个新的 Image 对象。
Source:
Returns:
Type
Promise.<Image>

(async, static) getHeight() → {Promise.<*>}

获取图片高度
Source:
Returns:
Type
Promise.<*>

(async, static) getWidth() → {Promise.<*>}

获取图片宽度
Source:
Returns:
Type
Promise.<*>

(static) isValid() → {Boolean}

判断Image对象是否有效
Source:
Returns:
true:有效;false:无效
Type
Boolean

(async, static) setBase64Url() → {Promise.<void>}

设置图片Base64Url
Source:
Returns:
Type
Promise.<void>