1mlib_ImageZoomOut2X(3MLIB)mediaLib Library Functionsmlib_ImageZoomOut2X(3MLIB)
2
3
4

NAME

6       mlib_ImageZoomOut2X - 0.5X zoom
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageZoomOut2X(mlib_image *dst, const mlib_image *src,
13            mlib_filter filter, mlib_edge edge);
14
15

DESCRIPTION

17       The  mlib_ImageZoomOut2X() function minifies the source image by a fac‐
18       tor of two. It uses the interpolation method as described by the resam‐
19       pling filter.
20
21
22       The  center  of  the  upper-left corner pixel of an image is located at
23       (0.5, 0.5).
24
25
26       The width and height of the destination image  can  be  different  from
27       those of the source image.
28
29
30       The  center of the source image is mapped onto the center of the desti‐
31       nation image.
32

PARAMETERS

34       The function takes the following arguments:
35
36       dst       Pointer to destination image.
37
38
39       src       Pointer to source image.
40
41
42       filter    Type of resampling filter. It can be one of the following:
43
44                   MLIB_NEAREST
45                   MLIB_BILINEAR
46                   MLIB_BICUBIC
47                   MLIB_BICUBIC2
48
49
50
51       edge      Type of edge condition. It can be one of the following:
52
53                   MLIB_EDGE_DST_NO_WRITE
54                   MLIB_EDGE_DST_FILL_ZERO
55                   MLIB_EDGE_OP_NEAREST
56                   MLIB_EDGE_SRC_EXTEND
57                   MLIB_EDGE_SRC_PADDED
58
59
60

RETURN VALUES

62       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
63       MLIB_FAILURE.
64

ATTRIBUTES

66       See attributes(5) for descriptions of the following attributes:
67
68
69
70
71       ┌─────────────────────────────┬─────────────────────────────┐
72       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
73       ├─────────────────────────────┼─────────────────────────────┤
74       │Interface Stability          │Committed                    │
75       ├─────────────────────────────┼─────────────────────────────┤
76       │MT-Level                     │MT-Safe                      │
77       └─────────────────────────────┴─────────────────────────────┘
78

SEE ALSO

80       mlib_ImageZoom(3MLIB),       mlib_ImageZoom_Fp(3MLIB),      mlib_Image‐
81       ZoomIn2X(3MLIB),  mlib_ImageZoomIn2X_Fp(3MLIB),   mlib_ImageZoomIn2XIn‐
82       dex(3MLIB),  mlib_ImageZoomIndex(3MLIB), mlib_ImageZoomOut2X_Fp(3MLIB),
83       mlib_ImageZoomOut2XIndex(3MLIB), attributes(5)
84
85
86
87SunOS 5.11                        2 Mar 2007        mlib_ImageZoomOut2X(3MLIB)
Impressum