mediaLib Library Functions mlibImageZoom(3MLIB)
NAME
mlibImageZoom - zoom
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibImageZoom(mlibimage *dst, const mlibimage *src,
mlibd64 zoomx, mlibd64 zoomy, mlibfilter filter, mlibedge edge);
DESCRIPTION
The mlibImageZoom() function will enlarge or minify the
source image by the X and Y zoom factors. It uses the inter-
polation method as described by the resampling filter.
The data type of the images can be MLIBIT, MLIBYTE,
MLIBSHORT, MLIBUSHORT, or MLIBINT.
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.
zoomx X zoom factor. zoomx > 0.0.
zoomy Y zoom factor. zoomy > 0.0.
filter Type of resampling filter. It can be one of the
following:
MLIBNEAREST
MLIBILINEAR
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibImageZoom(3MLIB)
MLIBICUBIC
MLIBICUBIC2
edge Type of edge condition. It can be one of the fol-
lowing:
MLIBEDGEDSTNOWRITE
MLIBEDGEDSTFILZERO
MLIBEDGEOPNEAREST
MLIBEDGESRCEXTEND
MLIBEDGESRCEXTENDINDEF
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
mlibImageZoomFp(3MLIB), mlibImageZoomIn2X(3MLIB),
mlibImageZoomIn2XFp(3MLIB),
mlibImageZoomIn2XIndex(3MLIB), mlibImageZoomIndex(3MLIB),
mlibImageZoomOut2X(3MLIB), mlibImageZoomOut2XFp(3MLIB),
mlibImageZoomOut2XIndex(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|