table of contents
other versions
- experimental 3~git20240129~750f1c1+ds-1
IMG_LoadSizedSVG_RW(3) | SDL_image3 FUNCTIONS | IMG_LoadSizedSVG_RW(3) |
NAME¶
IMG_LoadSizedSVG_RW - Load an SVG image, scaled to a specific size.
SYNOPSIS¶
#include "SDL3_image/SDL_image.h"
SDL_Surface * IMG_LoadSizedSVG_RW(SDL_RWops *src, int width, int height);
DESCRIPTION¶
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_DestroySurface().
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns a new SDL surface, or NULL on error.
AVAILABILITY¶
This function is available since SDL_image 3.0.0.
SDL_image 3.0.0 | SDL_image |