loadSizedSVGRaw

Wraps IMG_LoadSizedSVG_RW (from SDL_image 2.6) which loads a dsdl2.Surface image from a buffer of SVG file format, while providing the desired flattened size of the vector image

@safe @trusted
static if(bindSDLImage)
static if(sdlImageSupport >= SDLImageSupport.v2_6)
loadSizedSVGRaw
(
const void[] data
,
uint[2] size
)

Parameters

data void[]

data buffer of the image

size uint[2]

desized size in pixels (width and height) of the flattened SVG image; 0 to either one of the dimensions to be adjusted for aspect ratio

Return Value

Type: Surface

dsdl2.Surface of the loaded image

Throws

dsdl2.SDLException if failed to load

Meta