1mlib_ImageCopy(3MLIB) mediaLib Library Functions mlib_ImageCopy(3MLIB)
2
3
4
6 mlib_ImageCopy - image copy
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageCopy(mlib_image *dst, const mlib_image *src);
13
14
16 The mlib_ImageCopy() function copies the source image to the destina‐
17 tion image. The data type of the images can be MLIB_BIT, MLIB_BYTE,
18 MLIB_SHORT, MLIB_USHORT, MLIB_INT, MLIB_FLOAT, or MLIB_DOUBLE.
19
20
21 It uses the following equation:
22
23 dst[x][y][i] = src[x][y][i]
24
25
27 The function takes the following arguments:
28
29 dst Pointer to destination image.
30
31
32 src Pointer to source image.
33
34
36 The function returns MLIB_SUCCESS if successful. Otherwise it returns
37 MLIB_FAILURE.
38
40 See attributes(5) for descriptions of the following attributes:
41
42
43
44
45 ┌─────────────────────────────┬─────────────────────────────┐
46 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
47 ├─────────────────────────────┼─────────────────────────────┤
48 │Interface Stability │Committed │
49 ├─────────────────────────────┼─────────────────────────────┤
50 │MT-Level │MT-Safe │
51 └─────────────────────────────┴─────────────────────────────┘
52
54 mlib_ImageCopyArea(3MLIB), mlib_ImageCopyMask(3MLIB), mlib_ImageCopy‐
55 Mask_Fp(3MLIB), mlib_ImageCopySubimage(3MLIB), attributes(5)
56
57
58
59SunOS 5.11 2 Mar 2007 mlib_ImageCopy(3MLIB)