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

Composite one image on another
[Image Package]


Functions

Gan_Imagegan_image_composite_q (Gan_Image *source, const Gan_Image *source_with_alpha, const Gan_Image *source_mask, Gan_Image *dest)
 Macro: Composite images.
Gan_Imagegan_image_composite_i (Gan_Image *image, const Gan_Image *source_with_alpha, const Gan_Image *source_mask)
 Macro: Composite with overwriting.
Gan_Imagegan_image_composite_s (Gan_Image *image, const Gan_Image *source_with_alpha, const Gan_Image *source_mask)
 Macro: Composite into a new image.

Function Documentation

Gan_Image* gan_image_composite_i Gan_Image image,
const Gan_Image source_with_alpha,
const Gan_Image source_mask
 

Macro: Composite with overwriting.

Parameters:
image The input/output image
source_with_alpha The input image with the alpha channel
source_mask Binary mask for source image or NULL
Returns:
Composited image, or NULL on failure.
Composites the image source_with_alpha onto the given image, overwriting the result onto image. If source_mask is not NULL, only pixels in the mask are composited.

See also:
gan_image_composite_q().

Gan_Image * gan_image_composite_q Gan_Image source,
const Gan_Image source_with_alpha,
const Gan_Image source_mask,
Gan_Image dest
 

Macro: Composite images.

Parameters:
source The input image
source_with_alpha The input image with the alpha channel
source_mask Binary mask for source image or NULL
dest The destination image
Returns:
Composited dest image, or NULL on failure.
Composites the image source_with_alpha onto the given image source, writing the result onto dest.

See also:
gan_image_composite_i().

Gan_Image* gan_image_composite_s Gan_Image image,
const Gan_Image source_with_alpha,
const Gan_Image source_mask
 

Macro: Composite into a new image.

Parameters:
image The input image
source_with_alpha The input image with the alpha channel
source_mask Binary mask for source image or NULL
Returns:
Composited output image, or NULL on failure.
Composites the image source_with_alpha onto the given image, overwriting the result onto image. If source_mask is not NULL, only pixels in the mask are composited.

See also:
gan_image_composite_q().


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