Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATImage::PNGRead
void CATImage::PNGRead ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 
) [static, protected]

PNGRead() reads from the current stream into the buffer provided by libpng.

You shouldn't need to call this directly - these are called by libpng only.

Parameters:
png_ptr - structure for the .png library. The CATStream* for the current stream is in png_ptr->io_ptr.
data - target buffer
length - number of bytes to read.
Returns:
none. Throws a CATRESULT on error.
See also:
Load()

Definition at line 1547 of file CATImage.cpp.

References CATFAILED, and CATStream::Read().

Referenced by Load().


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