1IM_PPM(3)                  Library Functions Manual                  IM_PPM(3)
2
3
4

NAME

6       im_ppm2vips,  im_ppm2vips_header,  im_vips2ppm  -  convert  PPM/PGM/PBM
7       images to and from VIPS format
8

SYNOPSIS

10       #include <vips/vips.h>
11
12       int im_ppm2vips( const char *filename, IMAGE *out )
13
14       int im_ppm2vips_header( const char *filename, IMAGE *out )
15
16       int im_vips2ppm( IMAGE *in, const char *filename )
17
18

DESCRIPTION

20       im_ppm2vips() reads the PPM/PGM/PBM image in filename, and  writes  the
21       image  out  in  VIPS  format.  It  can read 1, 8, 16 and 32 bit images,
22       colour or monochrome, stored in binary or  in  ASCII.  One  bit  images
23       become 8 bit VIPS images, with 0 and 255 for 0 and 1.
24
25       im_ppm2vips_header()  reads  the  just the header of the image into the
26       VIPS image. You can't read any pixels!
27
28       im_vips2ppm() writes the VIPS image to the named file in PPM format. It
29       can  write 8, 16 or 32 bit integer images, colour or monochrome, stored
30       as binary or ASCII. Images of more than 8 bits can only  be  stored  in
31       ASCII.
32
33       The storage format is indicated by a filename extension.
34
35         im_vips2ppm( im, "fred.ppm:ascii" )
36
37       will write to "fred.ppm" in ascii format. The default is binary.
38
39

SEE ALSO

41       im_isppm(3)
42
44       Hey, you want this? You have it!
45
46
47
48                                 November 2000                       IM_PPM(3)
Impressum