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

NAME

6       mlib_ImageCopyArea - copy an area
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageCopyArea(mlib_image *img, mlib_s32 x, mlib_s32 y,
13            mlib_s32 w, mlib_s32 h, mlib_s32 dx, mlib_s32 dy);
14
15

DESCRIPTION

17       The  mlib_ImageCopyArea()  function copies a specified rectangular area
18       from one portion of the image to another portion of the same image. The
19       data  type  of  the  image  can  be  MLIB_BIT,  MLIB_BYTE,  MLIB_SHORT,
20       MLIB_USHORT, MLIB_INT, MLIB_FLOAT, or MLIB_DOUBLE.
21
22
23       It uses the following equation:
24
25         img[x+dx+i][y+dy+j][i] = img[x+i][y+j][i]
26
27
28
29       where i = 0, 1, ..., w-1; j = 0, 1, ..., h-1.
30

PARAMETERS

32       The function takes the following arguments:
33
34       img    Pointer to source image.
35
36
37       x      X coordinate of the area origin in the source.
38
39
40       y      Y coordinate of the area origin in the source.
41
42
43       w      Width of the area to be copied.
44
45
46       h      Height of the area to be copied.
47
48
49       dx     Horizontal displacement in pixels of the area to be copied.
50
51
52       dy     Vertical displacement in pixels of the area to be copied.
53
54

RETURN VALUES

56       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
57       MLIB_FAILURE.
58

ATTRIBUTES

60       See attributes(5) for descriptions of the following attributes:
61
62
63
64
65       ┌─────────────────────────────┬─────────────────────────────┐
66       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
67       ├─────────────────────────────┼─────────────────────────────┤
68       │Interface Stability          │Committed                    │
69       ├─────────────────────────────┼─────────────────────────────┤
70       │MT-Level                     │MT-Safe                      │
71       └─────────────────────────────┴─────────────────────────────┘
72

SEE ALSO

74       mlib_ImageCopy(3MLIB),    mlib_ImageCopyMask(3MLIB),    mlib_ImageCopy‐
75       Mask_Fp(3MLIB), mlib_ImageCopySubimage(3MLIB), attributes(5)
76
77
78
79SunOS 5.11                        2 Mar 2007         mlib_ImageCopyArea(3MLIB)
Impressum