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

3.3.10 IMG_isTIF

int IMG_isTIF(SDL_RWops *src)

src

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

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

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

See Also:
3.2.13 IMG_LoadTIF_RW, 3.2.3 IMG_LoadTyped_RW



This document was generated on November, 3 2009 using texi2html