Load an SVG image, scaled to a specific size.
Defined in <SDL_image.h>
int width, int height); SDL_Surface * IMG_LoadSizedSVG_RW(SDL_RWops *src,
SDL_RWops * | src | an SDL_RWops to load SVG data from. |
int | width | desired width of the generated surface, in pixels. |
int | height | desired height of the generated surface, in pixels. |
(SDL_Surface *) Returns a new SDL surface, or NULL on error.
Since SVG files are resolution-independent, you specify the size you would like the output image to be and it will be generated at those dimensions.
Either width or height may be 0 and the image will be auto-sized to preserve aspect ratio.
When done with the returned surface, the app should dispose of it with a call to SDL_FreeSurface().
This function is available since SDL_image 2.6.0.