1IM_BINFILE(3) Library Functions Manual IM_BINFILE(3)
2
3
4
6 im_binfile, im_image - wrap a raw binary file inside an IMAGE descripâ
7 tor
8
10 #include <vips/vips.h>
11
12 IMAGE *im_binfile( name, xs, ys, b, off )
13 char *in;
14 IMAGE *out;
15 int xs, ys, b, off;
16
17 IMAGE *
18 im_image( void *buffer, int width, int height, int bands, int format )
19
20
22 im_binfile(3) maps the file named, and returns an image descriptor
23 which looks very like the sort of thing that im_mmapin(3) returns.
24
25 The parameters specify the image width, height, number of bands and
26 offset in bytes from the start of the file.
27
28 im_image(3) makes an IMAGE deriptor from an area of pixels in memory.
29 The memory buffer will not be freed when the IMAGE is closed, use
30 im_add_close_callback() if you want this.
31
32
34 The functions return NULL on error.
35
37 im_mmapin(3), im_openout(3), im_setbuf(3).
38
40 N. Dessipris
41
43 N. Dessipris - 11/04/1990
44
45
46
47 11 April 1990 IM_BINFILE(3)