Methods
(async, static) createObj() → {Promise.<Image>}
构造一个新的 Image 对象。
Returns:
- Type
- Promise.<Image>
(async, static) createObjByLocalPath() → {Promise.<Image>}
构造一个新的 Image 对象。
Returns:
- Type
- Promise.<Image>
(async, static) getHeight() → {Promise.<*>}
获取图片高度
Returns:
- Type
- Promise.<*>
(async, static) getWidth() → {Promise.<*>}
获取图片宽度
Returns:
- Type
- Promise.<*>
(static) isValid() → {Boolean}
判断Image对象是否有效
Returns:
true:有效;false:无效
- Type
- Boolean
(async, static) setBase64Url() → {Promise.<void>}
设置图片Base64Url
Returns:
- Type
- Promise.<void>