未验证 提交 7ae679ef 编写于 作者: 冯泽悟 提交者: Gitee

自动化测试修复

Signed-off-by: N冯泽悟 <fengzewu@huawei.com>
上级 ea77cf7e
...@@ -1076,9 +1076,9 @@ const data = new ArrayBuffer(112); ...@@ -1076,9 +1076,9 @@ const data = new ArrayBuffer(112);
const imageSourceApi = image.createImageSource(data); const imageSourceApi = image.createImageSource(data);
``` ```
## image.createIncrementalSource<sup>9+</sup> ## image.CreateIncrementalSource<sup>9+</sup>
createIncrementalSource(buf: ArrayBuffer): ImageSource CreateIncrementalSource(buf: ArrayBuffer): ImageSource
通过缓冲区以增量的方式创建图片源实例。 通过缓冲区以增量的方式创建图片源实例。
...@@ -1100,12 +1100,12 @@ createIncrementalSource(buf: ArrayBuffer): ImageSource ...@@ -1100,12 +1100,12 @@ createIncrementalSource(buf: ArrayBuffer): ImageSource
```js ```js
const buf = new ArrayBuffer(96); const buf = new ArrayBuffer(96);
const imageSourceIncrementalSApi = image.createIncrementalSource(buf); const imageSourceIncrementalSApi = image.CreateIncrementalSource(buf);
``` ```
## image.createIncrementalSource<sup>9+</sup> ## image.CreateIncrementalSource<sup>9+</sup>
createIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource CreateIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource
通过缓冲区以增量的方式创建图片源实例。 通过缓冲区以增量的方式创建图片源实例。
...@@ -1128,7 +1128,7 @@ createIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource ...@@ -1128,7 +1128,7 @@ createIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource
```js ```js
const buf = new ArrayBuffer(96); const buf = new ArrayBuffer(96);
const imageSourceIncrementalSApi = image.createIncrementalSource(buf); const imageSourceIncrementalSApi = image.CreateIncrementalSource(buf);
``` ```
## ImageSource ## ImageSource
...@@ -1667,7 +1667,7 @@ let bufferArr = new Uint8Array(color); ...@@ -1667,7 +1667,7 @@ let bufferArr = new Uint8Array(color);
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } } let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts).then((pixelmap) => { image.createPixelMap(color, opts).then((pixelmap) => {
let packOpts = { format:"image/jpeg", quality:98 } let packOpts = { format:"image/jpeg", quality:98 }
imagePackerApi.packing(pixelMapApi, packOpts, data => { imagePackerApi.packing(pixelmap, packOpts, data => {
console.log('Succeeded in packing the image.'); console.log('Succeeded in packing the image.');
}) })
}) })
...@@ -1702,7 +1702,7 @@ let bufferArr = new Uint8Array(color); ...@@ -1702,7 +1702,7 @@ let bufferArr = new Uint8Array(color);
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } } let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts).then((pixelmap) => { image.createPixelMap(color, opts).then((pixelmap) => {
let packOpts = { format:"image/jpeg", quality:98 } let packOpts = { format:"image/jpeg", quality:98 }
imagePackerApi.packing(pixelMapApi, packOpts) imagePackerApi.packing(pixelmap, packOpts)
.then( data => { .then( data => {
console.log('Succeeded in packing the image.'); console.log('Succeeded in packing the image.');
}).catch(error => { }).catch(error => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册