1IM_HEADER(3) Library Functions Manual IM_HEADER(3)
2
3
4
6 im_header_int, im_header_double, im_header_string - read fields from
7 the image header
8
10 #include <vips/vips.h>
11
12 int im_header_int( IMAGE *image, const char *field, int *out )
13 int im_header_double( IMAGE *image, const char *field, double *out )
14 int im_header_string( IMAGE *image, const char *field, char **out )
15
16
18 im_header_int() reads the value of the integer header fields. These are
19 "Xsize", "Ysize", "Bands", "Bbits", "BandFmt", "Coding", and "Type".
20
21 im_header_double() reads the value of the integer header fields. These
22 are "Xres", and "Yres".
23
24 im_header_string() reads the value of the integer header fields. These
25 are "Hist", and "filename".
26
28 All functions returns 0 on success and -1 on error.
29
31 im_close(3), im_open(3), `VIPS Library Programmers' Guide,' in accompa‐
32 nying documentation.
33
34
35
36 7 May 2002 IM_HEADER(3)