mediaLib Library Functions mlibImageZoomOut2X(3MLIB)
NAME
mlibImageZoomOut2X - 0.5X zoom
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibImageZoomOut2X(mlibimage *dst, const mlibimage *src,
mlibfilter filter, mlibedge edge);
DESCRIPTION
The mlibImageZoomOut2X() function minifies the source image
by a factor of two. It uses the interpolation method as
described by the resampling filter.
The center of the upper-left corner pixel of an image is
located at (0.5, 0.5).
The width and height of the destination image can be dif-
ferent from those of the source image.
The center of the source image is mapped onto the center of
the destination image.
PARAMETERS
The function takes the following arguments:
dst Pointer to destination image.
src Pointer to source image.
filter Type of resampling filter. It can be one of the
following:
MLIBNEAREST
MLIBILINEAR
MLIBICUBIC
MLIBICUBIC2
edge Type of edge condition. It can be one of the fol-
lowing:
MLIBEDGEDSTNOWRITE
MLIBEDGEDSTFILZERO
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibImageZoomOut2X(3MLIB)
MLIBEDGEOPNEAREST
MLIBEDGESRCEXTEND
MLIBEDGESRCPADED
RETURN VALUES
The function returns MLIBSUCES if successful. Otherwise
it returns MLIBFAILURE.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibImageZoom(3MLIB), mlibImageZoomFp(3MLIB),
mlibImageZoomIn2X(3MLIB), mlibImageZoomIn2XFp(3MLIB),
mlibImageZoomIn2XIndex(3MLIB), mlibImageZoomIndex(3MLIB),
mlibImageZoomOut2XFp(3MLIB),
mlibImageZoomOut2XIndex(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|