.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL_image's wiki page for IMG_LoadSizedSVG_RW: .\" https://wiki.libsdl.org/SDL_image/IMG_LoadSizedSVG_RW .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision 3~git20240129~750f1c1+ds-1 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20IMG_LoadSizedSVG_RW .\" SDL_image can be found at https://libsdl.org/projects/SDL_image .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH IMG_LoadSizedSVG_RW 3 "SDL_image 3.0.0" "SDL_image" "SDL_image3 FUNCTIONS" .SH NAME IMG_LoadSizedSVG_RW \- Load an SVG image, scaled to a specific size\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_image/SDL_image.h\(dq .PP .BI "SDL_Surface * IMG_LoadSizedSVG_RW(SDL_RWops *src, int width, int height); .fi .SH 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\[char46] Either width or height may be 0 and the image will be auto-sized to preserve aspect ratio\[char46] When done with the returned surface, the app should dispose of it with a call to SDL_DestroySurface()\[char46] .SH FUNCTION PARAMETERS .TP .I src an SDL_RWops to load SVG data from\[char46] .TP .I width desired width of the generated surface, in pixels\[char46] .TP .I height desired height of the generated surface, in pixels\[char46] .SH RETURN VALUE Returns a new SDL surface, or NULL on error\[char46] .SH AVAILABILITY This function is available since SDL_image 3\[char46]0\[char46]0\[char46]