未验证 提交 c14fea7e 编写于 作者: 葛亚芳 提交者: Gitee

update zh-cn/application-dev/napi/native-window-guidelines.md.

Signed-off-by: N葛亚芳 <geyafang@huawei.com>
上级 c1f966e0
...@@ -86,7 +86,7 @@ NativeWindow是`OpenHarmony`**本地平台化窗口**,包括从`Surface`构建 ...@@ -86,7 +86,7 @@ NativeWindow是`OpenHarmony`**本地平台化窗口**,包括从`Surface`构建
SkImageInfo imageInfo = ... SkImageInfo imageInfo = ...
bitmap.setInfo(imageInfo, bufferHandle->stride); bitmap.setInfo(imageInfo, bufferHandle->stride);
bitmap.setPixels(bufferHandle->virAddr); bitmap.setPixels(bufferHandle->virAddr);
//创建 Skia Canvas 并将内容写入naitve window //创建 Skia Canvas 并将内容写入native window
... ...
//写入完成后,通过OH_NativeWindow_NativeWindowFlushBuffer 提交给消费者使用,例如:显示在屏幕上 //写入完成后,通过OH_NativeWindow_NativeWindowFlushBuffer 提交给消费者使用,例如:显示在屏幕上
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册