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

3.2.4 IMG_isXCF

int IMG_isXCF(SDL_RWops *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");
	printf("sample.xcf is a XCF file.\n");
	printf("sample.xcf is not a XCF file, or XCF support is not available.\n");

See Also:
3.1.3 IMG_LoadTyped_RW

This document was generated on January, 24 2006 using texi2html