[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.2.1 IMG_isBMP

int IMG_isBMP(SDL_RWops *src)


If the BMP format is supported, then the image data is tested to see if it is readable as a BMP, otherwise it returns false (Zero).

Returns: 1 if the image is a BMP and the BMP format support is compiled into SDL_image. 0 is returned otherwise.

// Test sample.bmp to see if it is a BMP
SDL_RWops *rwop;
rwop=SDL_RWFromFile("sample.bmp", "rb");
	printf("sample.bmp is a BMP file.\n");
	printf("sample.bmp is not a BMP file, or BMP support is not available.\n");

See Also:
3.1.3 IMG_LoadTyped_RW

This document was generated on January, 24 2006 using texi2html