Home| base |src.lib|graphic|fbuffer| FrameBufferSavePPM Index

FrameBufferSavePPM

Syntax
int FrameBufferSavePPM(struct FrameBuffer *ptr,FILE *fp);
Header
base/rfbuffer.h
Library
rfbuf
Description

The FrameBufferSavePPM function saves a frame buffer as a Portable PixMap (PPM) to an open stream.

The argument ptr points to the structure containing the frame buffer. The Portable PixMap is written to the open stream pointed to by the argument fp.

Returns
Returns zero on success. On error, (-1) is returned.
Errors
On error, (-1) is returned.
Example
None