PANDORE Version 6 GREYC-IMAGE

pppm2pan



Converts PPM (Portable PixMap), PGM (Portable GrayMap) ou PBM (Portable BitMap) image file to Pandore file.



Synopsis

pppm2pan im_in [im_out|-]

Description

pppm2pan converts a PPM (Portable PixMap image), PGM (Portable GrayMap image), or PBM (Portable BitMap image) to Pandore image file.

A PPM, PGM, PBM consists of the followings:

Examples:

P2
#Gray scale image
#with 5 columns and 5 rows.
5 4
255
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5

Tip: PPM image can be easily built by hand. This is a convenient way to build image from scratch.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

See also

Conversion, ppan2ppm

C++ prototype

Errc PPPM2Pan( const char* filename, Pobject **obj_out );

Author: Régis Clouard