| Did you know ... | Search Documentation: |
| image->load |
source_sink. When the
source is a file, it is first located via file->find
on
path (defaults to image.path).
The decoder is SDL_image, so PNG, JPEG, BMP, GIF, PCX and the other formats supported by SDL_image all load. SVG is recognised by file extension or by sniffing the stream and is rendered through SDL's size-aware SVG loader:
<-width and image<-height
non-zero â SVG is rendered at exactly that size;Streams that are not SVG fall back to a built-in PNM reader when SDL_image cannot interpret them.