Test for valid, supported JPG file.
1 if the image is a JPG and the JPG format support is compiled into SDL_image. 0 is returned otherwise.
Binds to C-function in SDL_image.h
int IMG_isJPG(SDL_RWops *src)
// Test sample.jpg to see if it is a JPG SDL_RWops *rwop; rwop=SDL_RWFromFile("sample.jpg", "rb"); if(IMG_isJPG(rwop)) printf("sample.jpg is a JPG file.\n"); else printf("sample.jpg is not a JPG file, or JPG support is not available.\n");
SdlImage Class | Tao.Sdl Namespace | IMG_LoadTyped_RW