Function 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

Surface loadSizedSVGRaw (
  const(void[]) data,
  uint[2] size
) @trusted;

Parameters

NameDescription
data data buffer of the image
size 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

Returns

dsdl2.Surface of the loaded image

Throws

dsdl2.SDLException if failed to load