Load a .JPG image.
a pointer to the image as a new SDL_Surface. NULL is returned on errors, like if JPG is not supported, or a read error.
Binds to C-function in SDL_image.h
SDL_Surface *IMG_LoadJPG_RW(SDL_RWops *src)
// load sample.jpg into image SDL_Surface *image; SDL_RWops *rwop; rwop=SDL_RWFromFile("sample.jpg", "rb"); image=IMG_LoadJPG_RW(rwop); if(!image) { printf("IMG_LoadJPG_RW: %s\n", IMG_GetError()); // handle error }
SdlImage Class | Tao.Sdl Namespace | IMG_LoadTyped_RW | IMG_isJPG