X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fthird-party%2Fnanosvg%2Fnanosvgrast.h;h=92f31ea14d78e1514826ff5cb986d88e0c1f3ecd;hb=59314022f6789147a47a8b098433e211b6185625;hp=3b526002ed93973925378a6c64654244169eda12;hpb=c97f82fcfa9085f4144863e28909476e611bc0d8;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/third-party/nanosvg/nanosvgrast.h b/dali-toolkit/third-party/nanosvg/nanosvgrast.h index 3b52600..92f31ea 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 software + * claim that you wrote the original software. If you use this softwarue * 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 @@ -30,15 +30,15 @@ typedef struct NSVGrasterizer NSVGrasterizer; /* Example Usage: - // Load SVG - struct SNVGImage* image = nsvgParseFromFile("test.svg."); + // Load SVG + struct SNVGImage* image = nsvgParseFromFile("test.svg."); - // Create rasterizer (can be used to render multiple images). - struct NSVGrasterizer* rast = nsvgCreateRasterizer(); - // Allocate memory for image - unsigned char* img = malloc(w*h*4); - // Rasterize - nsvgRasterize(rast, image, 0,0,1, img, w, h, w*4); + // Create rasterizer (can be used to render multiple images). + struct NSVGrasterizer* rast = nsvgCreateRasterizer(); + // Allocate memory for image + unsigned char* img = malloc(w*h*4); + // Rasterize + nsvgRasterize(rast, image, 0,0,1, img, w, h, w*4); */ // Allocated rasterizer context. @@ -54,8 +54,8 @@ NSVGrasterizer* nsvgCreateRasterizer(); // h - height of the image to render // stride - number of bytes per scaleline in the destination buffer void nsvgRasterize(NSVGrasterizer* r, - NSVGimage* image, float tx, float ty, float scale, - unsigned char* dst, int w, int h, int stride); + NSVGimage* image, float tx, float ty, float scale, + unsigned char* dst, int w, int h, int stride); // Deletes rasterizer context. void nsvgDeleteRasterizer(NSVGrasterizer*);