Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATImage::Save
CATResult CATImage::Save ( const CATWChar filename,
CATImage image 
) [static]

Save() saves an image to a file.

Currently, only .PNG format is supported.

Parameters:
stream - an opened stream to save the image to. The stream should be positioned to the location to save the image to, and it must be writeable.
image - ptr to image to save.
Returns:
CATResult - CAT_SUCCESS on success.

Definition at line 1381 of file CATImage.cpp.

References CAT_SUCCESS, CATFAILED, CATStreamFile::Close(), CATStreamFile::Open(), CATStream::READ_WRITE_CREATE_TRUNC, and Save().


Generated on Mon Feb 11 04:10:33 2008 for Game Accessibility Suite by doxygen 1.5.4