1mlib_ImageZoomOut2XIndex(3MmLeIdBi)aLib Library Functmiloinbs_ImageZoomOut2XIndex(3MLIB)
2
3
4

NAME

6       mlib_ImageZoomOut2XIndex - 0.5X zoom
7

SYNOPSIS

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

DESCRIPTION

18       The  mlib_ImageZoomOut2XIndex() function minifies the source image by a
19       factor of two. It uses the interpolation method  as  described  by  the
20       resampling filter.
21
22
23       The image data type must be MLIB_BYTE or MLIB_SHORT.
24
25
26       The  center  of  the  upper-left corner pixel of an image is located at
27       (0.5, 0.5).
28
29
30       The width and height of the destination image  can  be  different  from
31       those of the source image.
32
33
34       The  center of the source image is mapped onto the center of the desti‐
35       nation image.
36

PARAMETERS

38       The function takes the following arguments:
39
40       dst         Pointer to destination image.
41
42
43       src         Pointer to source image.
44
45
46       filter      Type of resampling filter. It can be one of the following:
47
48                     MLIB_NEAREST
49                     MLIB_BILINEAR
50                     MLIB_BICUBIC
51                     MLIB_BICUBIC2
52
53
54
55       edge        Type of edge condition. It can be one of the following:
56
57                     MLIB_EDGE_DST_NO_WRITE
58                     MLIB_EDGE_DST_FILL_ZERO
59                     MLIB_EDGE_OP_NEAREST
60                     MLIB_EDGE_SRC_EXTEND
61                     MLIB_EDGE_SRC_PADDED
62
63
64
65       colormap    Internal data structure for  inverse  color  mapping.  This
66                   data   structure   is   generated   by  the  mlib_ImageCol‐
67                   orTrue2IndexInit() function.
68
69

RETURN VALUES

71       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
72       MLIB_FAILURE.
73

ATTRIBUTES

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

SEE ALSO

89       mlib_ImageZoom(3MLIB),       mlib_ImageZoom_Fp(3MLIB),      mlib_Image‐
90       ZoomIn2X(3MLIB),  mlib_ImageZoomIn2X_Fp(3MLIB),   mlib_ImageZoomIn2XIn‐
91       dex(3MLIB),   mlib_ImageZoomIndex(3MLIB),   mlib_ImageZoomOut2X(3MLIB),
92       mlib_ImageZoomOut2X_Fp(3MLIB), attributes(5)
93
94
95
96SunOS 5.11                        2 Mar 2007   mlib_ImageZoomOut2XIndex(3MLIB)
Impressum