1mlib_ImageAffineIndex(3MLIBm)ediaLib Library Functionmslib_ImageAffineIndex(3MLIB)
2
3
4

NAME

6       mlib_ImageAffineIndex - affine transformation on a color indexed image
7

SYNOPSIS

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

DESCRIPTION

18       The  mlib_ImageAffineIndex()  function  does affine transformation on a
19       color indexed image according to the following equation:
20
21         xd = a*xs + b*ys + tx
22         yd = c*xs + d*ys + ty
23
24
25
26       where a point with coordinates (xs, ys) in the source image  is  mapped
27       to a point with coordinates (xd, yd) in the destination image.
28
29
30       The image data type must be MLIB_BYTE or MLIB_SHORT.
31
32
33       The width and height of the destination image can be different from the
34       width and height of the source image.
35
36
37       The center of the upper-left corner pixel of an  image  is  located  at
38       (0.5, 0.5).
39

PARAMETERS

41       The function takes the following arguments:
42
43       dst         Pointer to destination image.
44
45
46       src         Pointer to source image.
47
48
49       mtx         Transformation  matrix.  mtx[0]  holds  a;  mtx[1] holds b;
50                   mtx[2] holds tx; mtx[3] holds c;  mtx[4]  holds  d;  mtx[5]
51                   holds ty.
52
53
54       filter      Type of resampling filter. It can be one of the following:
55
56                     MLIB_NEAREST
57                     MLIB_BILINEAR
58                     MLIB_BICUBIC
59                     MLIB_BICUBIC2
60
61
62
63       edge        Type of edge condition. It can be one of the following:
64
65                     MLIB_EDGE_DST_NO_WRITE
66                     MLIB_EDGE_DST_FILL_ZERO
67                     MLIB_EDGE_OP_NEAREST
68                     MLIB_EDGE_SRC_EXTEND
69                     MLIB_EDGE_SRC_PADDED
70
71
72
73       colormap    Internal  data  structure  for  inverse color mapping. This
74                   data  structure  is   generated   by   the   mlib_ImageCol‐
75                   orTrue2IndexInit() function.
76
77

RETURN VALUES

79       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
80       MLIB_FAILURE.
81

ATTRIBUTES

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

SEE ALSO

97       mlib_ImageAffine(3MLIB), mlib_ImageAffine_Fp(3MLIB),  mlib_ImageAffine‐
98       Transform(3MLIB),                  mlib_ImageAffineTransform_Fp(3MLIB),
99       mlib_ImageAffineTransformIndex(3MLIB), attributes(5)
100
101
102
103SunOS 5.11                        2 Mar 2007      mlib_ImageAffineIndex(3MLIB)
Impressum