提交 a808292a 编写于 作者: X xiongwei

Improve effectKit documentation

Signed-off-by: Nxiongwei <xiongwei84@huawei.com>
上级 80856d69
......@@ -43,7 +43,6 @@ createEffect(source: image.PixelMap): Filter
import image from "@ohos.multimedia.image";
const color = new ArrayBuffer(96);
let bufferArr = new Uint8Array(color);
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts).then((pixelMap) => {
let headFilter = effectKit.createEffect(pixelMap);
......@@ -76,7 +75,6 @@ createColorPicker(source: image.PixelMap): Promise\<ColorPicker>
import image from "@ohos.multimedia.image";
const color = new ArrayBuffer(96);
let bufferArr = new Uint8Array(color);
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts).then((pixelMap) => {
effectKit.createColorPicker(pixelMap).then(colorPicker => {
......@@ -106,7 +104,6 @@ createColorPicker(source: image.PixelMap, callback: AsyncCallback\<ColorPicker>)
import image from "@ohos.multimedia.image";
const color = new ArrayBuffer(96);
let bufferArr = new Uint8Array(color);
let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts).then((pixelMap) => {
effectKit.createColorPicker(pixelMap, (error, colorPicker) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册