To write a file, the caller specifies the dimensions and a callback. More...
|
Classes | |
| struct | pgmppm::color_t |
Modules | |
| File Reading | |
Caller provides the stream to be read, and two callbacks. | |
|
| |
| typedef int(* | pgmppm::pgm_pixel_fn )(IN void *context, IN int x, IN int y) |
| typedef color_t(* | pgmppm::ppm_pixel_fn )(IN void *context, IN int x, IN int y) |
| void | pgmppm::writePgm (IO std::ostream &out, IN int width, IN int height, IN int max_gray,IN pgm_pixel_fn fn, IN void *context) |
| write a pgm file to an output stream | |
| void | pgmppm::writePpm (IO std::ostream &out, IN int width, IN int height, IN int max_color, IN ppm_pixel_fn fn, IN void *context) |
To write a file, the caller specifies the dimensions and a callback.
The file-writing routine will call back to retrieve per-pixel info.
These are designed to be safe and agnostic to image storage, not fast.
| typedef int(* pgmppm::pgm_pixel_fn)(IN void *context, IN int x, IN int y) |
| typedef color_t(* pgmppm::ppm_pixel_fn)(IN void *context, IN int x, IN int y) |
| void pgmppm::writePgm | ( | IO std::ostream & | out, | |
| IN int | width, | |||
| IN int | height, | |||
| IN int | max_gray, | |||
| IN pgm_pixel_fn | fn, | |||
| IN void * | context | |||
| ) |
write a pgm file to an output stream
| void pgmppm::writePpm | ( | IO std::ostream & | out, | |
| IN int | width, | |||
| IN int | height, | |||
| IN int | max_color, | |||
| IN ppm_pixel_fn | fn, | |||
| IN void * | context | |||
| ) |
1.7.1