X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fthird-party%2Fnanosvg%2Fnanosvgrast.h;h=4d6ea4772da28763229123ab93605043f2620df0;hp=92f31ea14d78e1514826ff5cb986d88e0c1f3ecd;hb=ae8eba951972b88640dbe8c1c96d32fdfa5c5ff5;hpb=3301543aa2dbaffe37c8b7ae9a3ee6f117e19b73;ds=sidebyside diff --git a/dali-toolkit/third-party/nanosvg/nanosvgrast.h b/dali-toolkit/third-party/nanosvg/nanosvgrast.h index 92f31ea..4d6ea47 100644 --- a/dali-toolkit/third-party/nanosvg/nanosvgrast.h +++ b/dali-toolkit/third-party/nanosvg/nanosvgrast.h @@ -10,7 +10,7 @@ * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this softwarue + * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be @@ -31,7 +31,8 @@ typedef struct NSVGrasterizer NSVGrasterizer; /* Example Usage: // Load SVG - struct SNVGImage* image = nsvgParseFromFile("test.svg."); + NSVGimage* image; + image = nsvgParseFromFile("test.svg", "px", 96); // Create rasterizer (can be used to render multiple images). struct NSVGrasterizer* rast = nsvgCreateRasterizer(); @@ -44,7 +45,7 @@ typedef struct NSVGrasterizer NSVGrasterizer; // Allocated rasterizer context. NSVGrasterizer* nsvgCreateRasterizer(); -// Rasterizes SVG image, returns RGBA image (premultiplied alpha) +// Rasterizes SVG image, returns RGBA image (non-premultiplied alpha) // r - pointer to rasterizer context // image - pointer to image to rasterize // tx,ty - image offset (applied after scaling)