1mlib_ImageCreate(3MLIB)   mediaLib Library Functions   mlib_ImageCreate(3MLIB)
2
3
4

NAME

6       mlib_ImageCreate - image creation
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_image *mlib_ImageCreate(mlib_type type, mlib_s32 channels,
13            mlib_s32 width, mlib_s32 height);
14
15

DESCRIPTION

17       The mlib_ImageCreate() function creates a mediaLib image data structure
18       and allocates memory space for image data. The data type of  the  image
19       can   be   MLIB_BIT,   MLIB_BYTE,  MLIB_SHORT,  MLIB_USHORT,  MLIB_INT,
20       MLIB_FLOAT, or MLIB_DOUBLE.
21
22
23       To obtain the best performance, it is recommended  that  you  use  this
24       function  to create a mediaLib image whenever possible, as this guaran‐
25       tees alignment.
26

PARAMETERS

28       The function takes the following arguments:
29
30       type        Image data type.
31
32
33       channels    Number of channels in the image.
34
35
36       width       Width of image in pixels.
37
38
39       height      Height of image in pixels.
40
41

RETURN VALUES

43       The function returns a pointer to the mlib_image data structure.
44

ATTRIBUTES

46       See attributes(5) for descriptions of the following attributes:
47
48
49
50
51       ┌─────────────────────────────┬─────────────────────────────┐
52       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
53       ├─────────────────────────────┼─────────────────────────────┤
54       │Interface Stability          │Committed                    │
55       ├─────────────────────────────┼─────────────────────────────┤
56       │MT-Level                     │MT-Safe                      │
57       └─────────────────────────────┴─────────────────────────────┘
58

SEE ALSO

60       mlib_ImageCreateStruct(3MLIB),         mlib_ImageCreateSubimage(3MLIB),
61       mlib_ImageDelete(3MLIB), mlib_ImageSetPaddings(3MLIB), attributes(5)
62
63
64
65SunOS 5.11                        2 Mar 2007           mlib_ImageCreate(3MLIB)
Impressum