[][src]Module sdl2::image

A binding for the library SDL2_image

Note that you need to build with the feature image for this module to be enabled, like so:

$ cargo build --features "image"

If you want to use this with from inside your own crate, you will need to add this in your Cargo.toml

[dependencies.sdl2]
version = ...
default-features = false
features = ["image"]

Structs

InitFlag

InitFlags are passed to init() to control which subsystem functionality to load.

Sdl2ImageContext

Context manager for sdl2_image to manage quitting. Can't do much with it but keep it alive while you are using it.

Traits

ImageRWops
LoadSurface

Static method extensions for creating Surfaces

LoadTexture

Method extensions for creating Textures from a TextureCreator

SaveSurface

Method extensions to Surface for saving to disk

Functions

get_linked_version

Returns the version of the dynamically linked SDL_image library

init

Initializes SDL2_image with InitFlags. If not every flag is set it returns an error