I have a simple SVG file (included), that draws a transparent rect with a red stroke, making a rectangle outline. For some reason when I load it it draws the outline on a gray rect.
image = nsvgParseFromFile("rect.svg", "px", 96);
rast = nsvgCreateRasterizer(); // create rasterzing object for "flattening"
unsigned char* img = (unsigned char*)malloc(rect.w*rect.h*4); // make data with room for the image
nsvgRasterize(rast, image, 0,0,1, img, w, h, w*4); // load the flattened image into
I have a simple SVG file (included), that draws a transparent rect with a red stroke, making a rectangle outline. For some reason when I load it it draws the outline on a gray rect.