1mlib_ImageCreateSubimage(3MmLeIdBi)aLib Library Functmiloinbs_ImageCreateSubimage(3MLIB)
2
3
4
6 mlib_ImageCreateSubimage - subimage creation
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_image *mlib_ImageCreateSubimage(mlib_image *img, mlib_s32 x,
13 mlib_s32 y, mlib_s32 w, mlib_s32 h);
14
15
17 The mlib_ImageCreateSubimage() function creates a mediaLib image data
18 structure for a subimage based on a source image. Note that the memory
19 space of the source image data is used for the subimage data. The data
20 type of the image can be MLIB_BIT, MLIB_BYTE, MLIB_SHORT, MLIB_USHORT,
21 MLIB_INT, MLIB_FLOAT, or MLIB_DOUBLE.
22
24 The function takes the following arguments:
25
26 img Pointer to source image.
27
28
29 x X coordinate of subimage origin in the source.
30
31
32 y Y coordinate of subimage origin in the source.
33
34
35 w Width of the subimage in pixels.
36
37
38 h Height of the subimage in pixels.
39
40
42 The function returns a pointer to the mlib_image data structure.
43
45 See attributes(5) for descriptions of the following attributes:
46
47
48
49
50 ┌─────────────────────────────┬─────────────────────────────┐
51 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
52 ├─────────────────────────────┼─────────────────────────────┤
53 │Interface Stability │Committed │
54 ├─────────────────────────────┼─────────────────────────────┤
55 │MT-Level │MT-Safe │
56 └─────────────────────────────┴─────────────────────────────┘
57
59 mlib_ImageCreate(3MLIB), mlib_ImageCreateStruct(3MLIB),
60 mlib_ImageDelete(3MLIB), mlib_ImageSetPaddings(3MLIB), attributes(5)
61
62
63
64SunOS 5.11 2 Mar 2007 mlib_ImageCreateSubimage(3MLIB)