1mlib_ImageZoomIndex(3MLIB)mediaLib Library Functionsmlib_ImageZoomIndex(3MLIB)
2
3
4

NAME

6       mlib_ImageZoomIndex - zoom on color-indexed image
7

SYNOPSIS

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

DESCRIPTION

18       The  mlib_ImageZoomIndex()  function  will enlarge or minify the source
19       image by the X and Y zoom factors. It uses the interpolation method  as
20       described by the 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       zoomx       X zoom factor. zoomx > 0.0.
47
48
49       zoomy       Y zoom factor. zoomy > 0.0.
50
51
52       filter      Type of resampling filter. It can be one of the following:
53
54                     MLIB_NEAREST
55                     MLIB_BILINEAR
56                     MLIB_BICUBIC
57                     MLIB_BICUBIC2
58
59
60
61       edge        Type of edge condition. It can be one of the following:
62
63                     MLIB_EDGE_DST_NO_WRITE
64                     MLIB_EDGE_DST_FILL_ZERO
65                     MLIB_EDGE_OP_NEAREST
66                     MLIB_EDGE_SRC_EXTEND
67                     MLIB_EDGE_SRC_PADDED
68
69
70
71       colormap    Internal data structure for  inverse  color  mapping.  This
72                   data   structure   is   generated   by  the  mlib_ImageCol‐
73                   orTrue2IndexInit() function.
74
75

RETURN VALUES

77       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
78       MLIB_FAILURE.
79

ATTRIBUTES

81       See attributes(5) for descriptions of the following attributes:
82
83
84
85
86       ┌─────────────────────────────┬─────────────────────────────┐
87       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
88       ├─────────────────────────────┼─────────────────────────────┤
89       │Interface Stability          │Committed                    │
90       ├─────────────────────────────┼─────────────────────────────┤
91       │MT-Level                     │MT-Safe                      │
92       └─────────────────────────────┴─────────────────────────────┘
93

SEE ALSO

95       mlib_ImageZoom(3MLIB),       mlib_ImageZoom_Fp(3MLIB),      mlib_Image‐
96       ZoomIn2X(3MLIB),  mlib_ImageZoomIn2X_Fp(3MLIB),   mlib_ImageZoomIn2XIn‐
97       dex(3MLIB),  mlib_ImageZoomOut2X(3MLIB), mlib_ImageZoomOut2X_Fp(3MLIB),
98       mlib_ImageZoomOut2XIndex(3MLIB), attributes(5)
99
100
101
102SunOS 5.11                        2 Mar 2007        mlib_ImageZoomIndex(3MLIB)
Impressum