Main Page | Modules | Class List | Directories | File List | Class Members | File Members

Scale an Image
[Image Package]


Functions

Gan_Image * gan_image_scale_q (Gan_Image *source, Gan_Image *mask, Gan_Pixel *scale, Gan_Image *dest)
 Scales the pixels in an image.
Gan_Image * gan_image_scale_s (Gan_Image *source, Gan_Image *mask, Gan_Pixel *scale)
 Macro: Scales the pixels in an image.
Gan_Image * gan_image_scale_i (Gan_Image *image, Gan_Image *mask, Pixel *scale)
 Macro: Scales the pixels in an image.

Function Documentation

Gan_Image* gan_image_scale_i (  Gan_Image *  image,
Gan_Image *  mask,
Pixel *  scale
) 
 

Macro: Scales the pixels in an image.

Parameters:
image The input/output image
mask A binary mask or NULL
scale Pixel defining the scale factor
Returns:
Pointer to the scaled image, or NULL on failure.
Scales all the pixels in an image in-place. This is a macro call to gan_image_scale_q(). If mask is not NULL then only pixels in the mask are scaled.

The scale pixel must be of GAN_FLOAT type.

See also:
gan_image_scale_q().

Gan_Image * gan_image_scale_q (  Gan_Image *  source,
Gan_Image *  mask,
Gan_Pixel *  scale,
Gan_Image *  dest
) 
 

Scales the pixels in an image.

Parameters:
source The input image
mask A binary mask or NULL
scale Pixel defining the scale factor
dest The destination image
Returns:
Pointer to the scaled image, or NULL on failure.
Scales all the pixels in image source by given scale factor scale into result image dest. If mask is not NULL then only pixels in the mask are scaled.

The scale pixel must be of GAN_FLOAT type.

See also:
gan_image_scale_q().

Gan_Image* gan_image_scale_s (  Gan_Image *  source,
Gan_Image *  mask,
Gan_Pixel *  scale
) 
 

Macro: Scales the pixels in an image.

Parameters:
source The input image
mask A binary mask or NULL
scale Pixel defining the scale factor
Returns:
Pointer to the scaled image, or NULL on failure.
Scales all the pixels in an image. This is a macro call to gan_image_scale_q(). If mask is not NULL then only pixels in the mask are scaled.

The scale pixel must be of GAN_FLOAT type.

See also:
gan_image_scale_q().


Generated on Sat May 21 23:52:56 2005 by  doxygen 1.4.3