You need to sign in or sign up before continuing.
提交 b1ad648f 编写于 作者: G Gloria 提交者: wusongqing

fixed c472270e from https://gitee.com/wusongqing/docs/pulls/14084

fixed abb8dff0 from https://gitee.com/wusongqing/docs/pulls/14082
Update docs against 13645

Signed-off-by: wusongqing<wusongqing@huawei.com>
上级 f15cb27c
...@@ -118,9 +118,9 @@ The following steps describe how to use the canvas and brush of the Native Drawi ...@@ -118,9 +118,9 @@ The following steps describe how to use the canvas and brush of the Native Drawi
// Draw a pentagram on the canvas. The outline of the pentagram is drawn by the pen, and the color is filled in by the brush. // Draw a pentagram on the canvas. The outline of the pentagram is drawn by the pen, and the color is filled in by the brush.
OH_Drawing_CanvasDrawPath(cCanvas, cPath); OH_Drawing_CanvasDrawPath(cCanvas, cPath);
// Destroy the created objects when they are no longer needed. // Destroy the created objects when they are no longer needed.
OH_Drawing_BrushDestory(cBrush); OH_Drawing_BrushDestroy(cBrush);
OH_Drawing_PenDestory(cPen); OH_Drawing_PenDestroy(cPen);
OH_Drawing_PathDestory(cPath); OH_Drawing_PathDestroy(cPath);
``` ```
6. **Obtain pixel data.** Use `OH_Drawing_BitmapGetPixels` in `drawing_bitmap.h` to obtain the pixel address of the bitmap bound to the canvas. The memory to which the address points contains the pixel data of the drawing on the canvas. 6. **Obtain pixel data.** Use `OH_Drawing_BitmapGetPixels` in `drawing_bitmap.h` to obtain the pixel address of the bitmap bound to the canvas. The memory to which the address points contains the pixel data of the drawing on the canvas.
...@@ -133,9 +133,9 @@ The following steps describe how to use the canvas and brush of the Native Drawi ...@@ -133,9 +133,9 @@ The following steps describe how to use the canvas and brush of the Native Drawi
LOGI("memcpy_s failed"); LOGI("memcpy_s failed");
} }
// Destroy the canvas object. // Destroy the canvas object.
OH_Drawing_CanvasDestory(cCanvas); OH_Drawing_CanvasDestroy(cCanvas);
// Destroy the bitmap object. // Destroy the bitmap object.
OH_Drawing_BitmapDestory(cBitmap); OH_Drawing_BitmapDestroy(cBitmap);
``` ```
## Development Procedure for Text Drawing ## Development Procedure for Text Drawing
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册