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

3.3.13 IMG_isXV

int IMG_isXV(SDL_RWops *src)

src

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

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

 
// Test sample.xv to see if it is an XV thumbnail
SDL_RWops *rwop;
rwop=SDL_RWFromFile("sample.xv", "rb");
if(IMG_isXV(rwop))
	printf("sample.xv is an XV file.\n");
else
	printf("sample.xv is not an XV file, or XV support is not available.\n");

See Also:
3.2.17 IMG_LoadXV_RW, 3.2.3 IMG_LoadTyped_RW



This document was generated on November, 3 2009 using texi2html