mediaLib Library Functions mlibImageZoomFp(3MLIB)
NAME
mlibImageZoomFp - zoom
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibImageZoomFp(mlibimage *dst, const mlibimage *src,
mlibd64 zoomx, mlibd64 zoomy, mlibfilter filter, mlibedge edge);
DESCRIPTION
The mlibImageZoomFp() function will enlarge or minify the
floating-point source image by the X and Y zoom factors. 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.
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
MLIBICUBIC
MLIBICUBIC2
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibImageZoomFp(3MLIB)
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
mlibImageZoom(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
|