1mlib_ImageZoomIn2X_Fp(3MLIBm)ediaLib Library Functionmslib_ImageZoomIn2X_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageZoomIn2X_Fp - 2X zoom
7

SYNOPSIS

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

DESCRIPTION

17       The mlib_ImageZoomIn2X_Fp() function enlarges the floating-point source
18       image by a factor of two. It uses the interpolation method as described
19       by the resampling 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_ImageZoomIn2XIndex(3MLIB),    mlib_ImageZoomIn‐
82       dex(3MLIB),  mlib_ImageZoomOut2X(3MLIB), mlib_ImageZoomOut2X_Fp(3MLIB),
83       mlib_ImageZoomOut2XIndex(3MLIB), attributes(5)
84
85
86
87SunOS 5.11                        2 Mar 2007      mlib_ImageZoomIn2X_Fp(3MLIB)
Impressum