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

3.3.2 IMG_isICO

int IMG_isICO(SDL_RWops *src)

src

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

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

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

See Also:
3.2.5 IMG_LoadICO_RW, 3.2.3 IMG_LoadTyped_RW



This document was generated on November, 3 2009 using texi2html