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