未验证 提交 fbbe9a0f 编写于 作者: 刘关鹏 提交者: Gitee

update zh-cn/application-dev/media/image-transformation-native.md.

Signed-off-by: N刘关鹏 <liuguanpeng1@huawei.com>
上级 2fc38f78
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
.fontWeight(FontWeight.Bold) .fontWeight(FontWeight.Bold)
.onClick(() => { .onClick(() => {
const color : ArrayBuffer = new ArrayBuffer(96); const color : ArrayBuffer = new ArrayBuffer(96);
let opts : image.InitializationOptions = { alphaType: 0, editable: true, pixelFormat: 4, scaleMode: 1, size: { height: 4, width: 6 } } let opts: image.InitializationOptions = { alphaType: 0, editable: true, pixelFormat: 4, scaleMode: 1, size: { height: 4, width: 6 } }
image.createPixelMap(color, opts) image.createPixelMap(color, opts)
.then( (pixelmap : image.PixelMap) => { .then( (pixelmap : image.PixelMap) => {
this._PixelMap = pixelmap; this._PixelMap = pixelmap;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册