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

NAME

6       im_initdesc - initialises an image descriptor to specific values
7

SYNOPSIS

9       #include <vips/vips.h>
10
11       void im_initdesc( IMAGE *image,
12            int xsize, int ysize,
13            int bands, int bandbits, int bandfmt,
14            int coding, int type,
15            float xres, float yres,
16            float xo, float yo )
17

DESCRIPTION

19       im_initdesc(3)  initialises  the  image  descriptor  according  to  the
20       entered values.  More specifically  the  Xsize,  Ysize,  Bands,  Bbits,
21       BandFmt,  Coding,  Type, Xres, Yres, Xoffset and Yoffset members of the
22       descriptor are initialised by the  correspondingly  entered  arguments.
23       The  members   fd,  baseaddr, data and filename are not handled by this
24       function.  The order of the args is the same as in vips/vips.h.
25
26       Example: make a 512 by 512 one-band memory buffer.
27
28          if( !(im = im_open( "temp", "t" )) )
29               /* Error ...
30          im_initdesc( im,
31              512, 512,
32              1, BBBYTE, FMTUCHAR,
33              NOCODING, B_W,
34              1.0, 1.0,
35              0, 0 );
36          if( im_setupout( im ) )
37              /* Error ...
38
39

ALSO

41       im_open(3), im_setupout(3).
42
44       N. Dessipris
45

AUTHOR

47       N. Dessipris - 22/04/1991
48
49
50
51                                 22 April 1991                  IM_INITDESC(3)
Impressum