未验证 提交 85593757 编写于 作者: O openharmony_ci 提交者: Gitee

!11481 完善effectKit文档

Merge pull request !11481 from 熊大伟/effectKit_fix
...@@ -43,7 +43,6 @@ createEffect(source: image.PixelMap): Filter ...@@ -43,7 +43,6 @@ createEffect(source: image.PixelMap): Filter
import image from "@ohos.multimedia.image"; import image from "@ohos.multimedia.image";
const color = new ArrayBuffer(96); const color = new ArrayBuffer(96);
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 headFilter = effectKit.createEffect(pixelMap); let headFilter = effectKit.createEffect(pixelMap);
...@@ -76,7 +75,6 @@ createColorPicker(source: image.PixelMap): Promise\<ColorPicker> ...@@ -76,7 +75,6 @@ createColorPicker(source: image.PixelMap): Promise\<ColorPicker>
import image from "@ohos.multimedia.image"; import image from "@ohos.multimedia.image";
const color = new ArrayBuffer(96); const color = new ArrayBuffer(96);
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) => {
effectKit.createColorPicker(pixelMap).then(colorPicker => { effectKit.createColorPicker(pixelMap).then(colorPicker => {
...@@ -106,7 +104,6 @@ createColorPicker(source: image.PixelMap, callback: AsyncCallback\<ColorPicker>) ...@@ -106,7 +104,6 @@ createColorPicker(source: image.PixelMap, callback: AsyncCallback\<ColorPicker>)
import image from "@ohos.multimedia.image"; import image from "@ohos.multimedia.image";
const color = new ArrayBuffer(96); const color = new ArrayBuffer(96);
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) => {
effectKit.createColorPicker(pixelMap, (error, colorPicker) => { effectKit.createColorPicker(pixelMap, (error, colorPicker) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册