From: Hermet Park Date: Sat, 5 Sep 2020 05:26:56 +0000 (+0900) Subject: Update README.md X-Git-Tag: accepted/tizen/unified/20200907.045053~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02262bec51c524a85ae761d14e10bdca98831824;p=platform%2Fcore%2Fgraphics%2Ftizenvg.git Update README.md Update Sample code Change-Id: I62cc381f06df664182cf304f4846328b26199fa4 --- diff --git a/README.md b/README.md index 8a6037e..5870a2a 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ ThorVG renders vector shapes on a given canvas buffer. You can initialize ThorVG engine first: ```cpp -tvg::Initializer::init(tvg::CanvasEngine::Sw); +tvg::Initializer::init(tvg::CanvasEngine::Sw, 0); //engine method, thread count ``` You can prepare a empty canvas for drawing on it. ```cpp @@ -54,7 +54,12 @@ Begin rendering & finish it at a particular time. canvas->draw(); canvas->sync(); ``` -Lastly, you can acquire the rendered image in buffer memory. +Now you can acquire the rendered image in buffer memory. + +Lastly, terminate the engine after usage. +```cpp +tvg::Initializer::term(tvg::CanvasEngine::Sw); +``` [Back to contents](#contents) #