Main Page   Modules   Compound List   File List   Compound Members   File Members  

image_extract.h File Reference

#include <gandalf/image/image_defs.h>

Go to the source code of this file.

Functions

Gan_Imagegan_image_extract_q (Gan_Image *source, int r0, int c0, unsigned height, unsigned width, Gan_ImageFormat format, Gan_Type type, Gan_Bool copy_pixels, Gan_Image *dest)
 Extracts part of an image.

Gan_Imagegan_image_extract_s (Gan_Image *source, int r0, int c0, unsigned height, unsigned width, Gan_ImageFormat format, Gan_Type type, Gan_Bool copy_pixels)
 Macro: Extracts part of an image.

Gan_Imagegan_image_convert_q (Gan_Image *source, Gan_ImageFormat format, Gan_Type type, Gan_Image *dest)
 Macro: Converts an image from one format/type to another.

Gan_Imagegan_image_convert_s (Gan_Image *source, Gan_ImageFormat format, Gan_Type type)
 Macro: Converts an image from one format/type to another.


Detailed Description

Module: Extract/convert part of an image

Part of: Gandalf Library

Revision: Last edited: Author:

Copyright: (c) 2000 Imagineer Software Limited


Function Documentation

Gan_Image* gan_image_extract_q Gan_Image   source,
int    r0,
int    c0,
unsigned    height,
unsigned    width,
Gan_ImageFormat    format,
Gan_Type    type,
Gan_Bool    copy_pixels,
Gan_Image   dest
 

Extracts part of an image.

Parameters:
source The input image
r0 Vertical offset of start of region
c0 Horizontal offset of start of region
height Height of region in pixels
width Width of region in pixels
format The format of the output image
type The type of the output image
copy_pixels Whether to copy the pixels from the source image
dest Destination image
Returns:
Pointer to the extracted/converted image, or NULL on failure.
Extracts a sub-part of an image, converting the image to a different format and type if desired. If the copy_pixels flag is set to GAN_TRUE, the pixel data is copied into the destination image; otherwise the destination image is set to point into the source image.

See also:
gan_image_extract_s().


Generated on Mon Oct 13 16:14:41 2003 by doxygen1.3-rc1