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

NAME

6       mlib_ImageZoom_Fp - zoom
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageZoom_Fp()  function will enlarge or minify the floating-
18       point source image by the X and Y zoom factors. It uses the  interpola‐
19       tion method as described 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       zoomx     X zoom factor. zoomx > 0.0.
43
44
45       zoomy     Y zoom factor. zoomy > 0.0.
46
47
48       filter    Type of resampling filter. It can be one of the following:
49
50                   MLIB_NEAREST
51                   MLIB_BILINEAR
52                   MLIB_BICUBIC
53                   MLIB_BICUBIC2
54
55
56
57       edge      Type of edge condition. It can be one of the following:
58
59                   MLIB_EDGE_DST_NO_WRITE
60                   MLIB_EDGE_DST_FILL_ZERO
61                   MLIB_EDGE_OP_NEAREST
62                   MLIB_EDGE_SRC_EXTEND
63                   MLIB_EDGE_SRC_EXTEND_INDEF
64                   MLIB_EDGE_SRC_PADDED
65
66
67

RETURN VALUES

69       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
70       MLIB_FAILURE.
71

ATTRIBUTES

73       See attributes(5) for descriptions of the following attributes:
74
75
76
77
78       ┌─────────────────────────────┬─────────────────────────────┐
79       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
80       ├─────────────────────────────┼─────────────────────────────┤
81       │Interface Stability          │Committed                    │
82       ├─────────────────────────────┼─────────────────────────────┤
83       │MT-Level                     │MT-Safe                      │
84       └─────────────────────────────┴─────────────────────────────┘
85

SEE ALSO

87       mlib_ImageZoom(3MLIB),      mlib_ImageZoomIn2X(3MLIB),      mlib_Image‐
88       ZoomIn2X_Fp(3MLIB),  mlib_ImageZoomIn2XIndex(3MLIB),  mlib_ImageZoomIn‐
89       dex(3MLIB),  mlib_ImageZoomOut2X(3MLIB), mlib_ImageZoomOut2X_Fp(3MLIB),
90       mlib_ImageZoomOut2XIndex(3MLIB), attributes(5)
91
92
93
94SunOS 5.11                        2 Mar 2007          mlib_ImageZoom_Fp(3MLIB)
Impressum