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

3.3.6 IMG_isXCF

int IMG_isXCF(SDL_RWops *src)

src

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

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

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

See Also:
3.2.9 IMG_LoadXCF_RW, 3.2.3 IMG_LoadTyped_RW



This document was generated on November, 3 2009 using texi2html