Main Page   Modules   Compound List   File List   Compound Members   File Members  

Access Individual Pixels of an Image
[Image Package]


Compounds

struct  Gan_GLAPixel_d
 Structure defining grey-level double precision floating point pixel with alpha channel. More...

struct  Gan_GLAPixel_f
 Structure defining grey-level single precision floating point pixel with alpha channel. More...

struct  Gan_GLAPixel_i
 Structure defining grey-level signed integer pixel with alpha channel. More...

struct  Gan_GLAPixel_s
 Structure defining grey-level short integer pixel with alpha channel. More...

struct  Gan_GLAPixel_uc
 Structure defining grey-level unsigned character pixel with alpha channel. More...

struct  Gan_GLAPixel_ui
 Structure defining grey-level unsigned integer pixel with alpha channel. More...

struct  Gan_GLAPixel_us
 Structure defining grey-level unsigned short pixel with alpha channel. More...

struct  Gan_Pixel
 Structure definition for image pixel of any format or type. More...

struct  Gan_RGBAPixel_d
 Structure defining RGB double precision floating point pixel with alpha channel. More...

struct  Gan_RGBAPixel_f
 Structure defining RGB single precision floating point pixel with alpha channel. More...

struct  Gan_RGBAPixel_i
 Structure defining RGB signed integer pixel with alpha channel. More...

struct  Gan_RGBAPixel_s
 Structure defining RGB signed short integer pixel with alpha channel. More...

struct  Gan_RGBAPixel_uc
 Structure defining RGB unsigned character pixel with alpha channel. More...

struct  Gan_RGBAPixel_ui
 Structure defining RGB unsigned integer pixel with alpha channel. More...

struct  Gan_RGBAPixel_us
 Structure defining RGB unsigned short integer pixel with alpha channel. More...

struct  Gan_RGBPixel_d
 Structure defining RGB colour double precision floating point pixel. More...

struct  Gan_RGBPixel_f
 Structure defining RGB colour singe precision floating point pixel. More...

struct  Gan_RGBPixel_i
 Structure defining RGB colour signed integer pixel. More...

struct  Gan_RGBPixel_s
 Structure defining RGB colour signed short integer pixel. More...

struct  Gan_RGBPixel_uc
 Structure defining RGB colour unsigned character pixel. More...

struct  Gan_RGBPixel_ui
 Structure defining RGB colour unsigned integer pixel. More...

struct  Gan_RGBPixel_us
 Structure defining RGB colour unsigned short integer pixel. More...


Typedefs

typedef Gan_GLAPixel_uc Gan_GLAPixel_uc
 Structure defining grey-level unsigned character pixel with alpha channel.

typedef Gan_GLAPixel_s Gan_GLAPixel_s
 Structure defining grey-level short integer pixel with alpha channel.

typedef Gan_GLAPixel_us Gan_GLAPixel_us
 Structure defining grey-level unsigned short pixel with alpha channel.

typedef Gan_GLAPixel_i Gan_GLAPixel_i
 Structure defining grey-level signed integer pixel with alpha channel.

typedef Gan_GLAPixel_ui Gan_GLAPixel_ui
 Structure defining grey-level unsigned integer pixel with alpha channel.

typedef Gan_GLAPixel_f Gan_GLAPixel_f
 Structure defining grey-level single precision floating point pixel with alpha channel.

typedef Gan_GLAPixel_d Gan_GLAPixel_d
 Structure defining grey-level double precision floating point pixel with alpha channel.

typedef Gan_RGBPixel_uc Gan_RGBPixel_uc
 Structure defining RGB colour unsigned character pixel.

typedef Gan_RGBPixel_s Gan_RGBPixel_s
 Structure defining RGB colour signed short integer pixel.

typedef Gan_RGBPixel_us Gan_RGBPixel_us
 Structure defining RGB colour unsigned short integer pixel.

typedef Gan_RGBPixel_i Gan_RGBPixel_i
 Structure defining RGB colour signed integer pixel.

typedef Gan_RGBPixel_ui Gan_RGBPixel_ui
 Structure defining RGB colour unsigned integer pixel.

typedef Gan_RGBPixel_f Gan_RGBPixel_f
 Structure defining RGB colour singe precision floating point pixel.

typedef Gan_RGBPixel_d Gan_RGBPixel_d
 Structure defining RGB colour double precision floating point pixel.

typedef Gan_RGBAPixel_uc Gan_RGBAPixel_uc
 Structure defining RGB unsigned character pixel with alpha channel.

typedef Gan_RGBAPixel_s Gan_RGBAPixel_s
 Structure defining RGB signed short integer pixel with alpha channel.

typedef Gan_RGBAPixel_us Gan_RGBAPixel_us
 Structure defining RGB unsigned short integer pixel with alpha channel.

typedef Gan_RGBAPixel_i Gan_RGBAPixel_i
 Structure defining RGB signed integer pixel with alpha channel.

typedef Gan_RGBAPixel_ui Gan_RGBAPixel_ui
 Structure defining RGB unsigned integer pixel with alpha channel.

typedef Gan_RGBAPixel_f Gan_RGBAPixel_f
 Structure defining RGB single precision floating point pixel with alpha channel.

typedef Gan_RGBAPixel_d Gan_RGBAPixel_d
 Structure defining RGB double precision floating point pixel with alpha channel.

typedef Gan_Pixel Gan_Pixel
 Structure definition for image pixel of any format or type.


Enumerations

enum  Gan_ImageFormat {
  GAN_GREY_LEVEL_IMAGE, GAN_GREY_LEVEL_ALPHA_IMAGE, GAN_RGB_COLOUR_IMAGE, GAN_RGB_COLOUR_ALPHA_IMAGE,
  GAN_VECTOR_FIELD_2D, GAN_VECTOR_FIELD_3D
}
 Different formats of image pixel. More...


Functions

Gan_Bool gan_image_set_pix_b (Gan_Image *img, unsigned row, unsigned col, Gan_Bool pix)
 Macro: Set a pixel in a grey-level Gan_Bool image.

Gan_BitWord gan_image_get_pix_b (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level Gan_Bool image.

Gan_Pixel gan_image_get_pix (Gan_Image *img, unsigned row, unsigned col)
 Gets a pixel from an image.

void * gan_image_get_pixptr (Gan_Image *img, unsigned row, unsigned col)
 Gets a pointer to a pixel from an image.

Gan_Bool gan_image_get_pix_zero (Gan_Image *img, unsigned row, unsigned col)
 Gets a pixel from an image and compares it with zero.

Gan_Bool gan_image_set_pix (Gan_Image *img, unsigned row, unsigned col, Gan_Pixel *pix)
 Sets a pixel in an image.

Gan_Bool gan_image_set_pix_zero (Gan_Image *img, unsigned row, unsigned col)
 Sets a pixel in an image to zero.

double * gan_image_get_pixptr_gl_d (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level double image.

double ** gan_image_get_pixarr_gl_d (Gan_Image *img)
 Return the pixel array from a grey-level double image.

Gan_Bool gan_image_set_pix_gl_d (Gan_Image *img, unsigned row, unsigned col, double pix)
 Macro: Set a pixel in a grey-level double image.

double gan_image_get_pix_gl_d (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level double image.

float * gan_image_get_pixptr_gl_f (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level float image.

float ** gan_image_get_pixarr_gl_f (Gan_Image *img)
 Return the pixel array from a grey-level float image.

Gan_Bool gan_image_set_pix_gl_f (Gan_Image *img, unsigned row, unsigned col, float pix)
 Macro: Set a pixel in a grey-level float image.

float gan_image_get_pix_gl_f (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level float image.

int * gan_image_get_pixptr_gl_i (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level int image.

int ** gan_image_get_pixarr_gl_i (Gan_Image *img)
 Return the pixel array from a grey-level int image.

Gan_Bool gan_image_set_pix_gl_i (Gan_Image *img, unsigned row, unsigned col, int pix)
 Macro: Set a pixel in a grey-level int image.

int gan_image_get_pix_gl_i (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level int image.

short * gan_image_get_pixptr_gl_s (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level short image.

short ** gan_image_get_pixarr_gl_s (Gan_Image *img)
 Return the pixel array from a grey-level short image.

Gan_Bool gan_image_set_pix_gl_s (Gan_Image *img, unsigned row, unsigned col, short pix)
 Macro: Set a pixel in a grey-level short image.

short gan_image_get_pix_gl_s (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level short image.

unsigned char * gan_image_get_pixptr_gl_uc (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level unsigned char image.

unsigned char ** gan_image_get_pixarr_gl_uc (Gan_Image *img)
 Return the pixel array from a grey-level unsigned char image.

Gan_Bool gan_image_set_pix_gl_uc (Gan_Image *img, unsigned row, unsigned col, unsigned char pix)
 Macro: Set a pixel in a grey-level unsigned char image.

unsigned char gan_image_get_pix_gl_uc (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level unsigned char image.

unsigned int * gan_image_get_pixptr_gl_ui (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level unsigned int image.

unsigned int ** gan_image_get_pixarr_gl_ui (Gan_Image *img)
 Return the pixel array from a grey-level unsigned int image.

Gan_Bool gan_image_set_pix_gl_ui (Gan_Image *img, unsigned row, unsigned col, unsigned int pix)
 Macro: Set a pixel in a grey-level unsigned int image.

unsigned int gan_image_get_pix_gl_ui (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level unsigned int image.

Gan_Bool gan_image_set_pix_gl_ui16 (Gan_Image *img, unsigned row, unsigned col, 16-bit unsigned pix)
 Macro: Set a pixel in a grey-level 16-bit unsigned image.

gan_ui16 gan_image_get_pix_gl_ui16 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level 16-bit unsigned image.

Gan_Bool gan_image_set_pix_gl_ui32 (Gan_Image *img, unsigned row, unsigned col, 32-bit unsigned pix)
 Macro: Set a pixel in a grey-level 32-bit unsigned image.

gan_ui32 gan_image_get_pix_gl_ui32 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level 32-bit unsigned image.

Gan_Bool gan_image_set_pix_gl_ui8 (Gan_Image *img, unsigned row, unsigned col, 8-bit unsigned pix)
 Macro: Set a pixel in a grey-level 8-bit unsigned image.

gan_ui8 gan_image_get_pix_gl_ui8 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level 8-bit unsigned image.

unsigned short * gan_image_get_pixptr_gl_us (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level unsigned short image.

unsigned short ** gan_image_get_pixarr_gl_us (Gan_Image *img)
 Return the pixel array from a grey-level unsigned short image.

Gan_Bool gan_image_set_pix_gl_us (Gan_Image *img, unsigned row, unsigned col, unsigned short pix)
 Macro: Set a pixel in a grey-level unsigned short image.

unsigned short gan_image_get_pix_gl_us (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level unsigned short image.

Gan_GLAPixel_dgan_image_get_pixptr_gla_d (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level alpha double image.

Gan_GLAPixel_d ** gan_image_get_pixarr_gla_d (Gan_Image *img)
 Return the pixel array from a grey-level alpha double image.

Gan_Bool gan_image_set_pix_gla_d (Gan_Image *img, unsigned row, unsigned col, struct Gan_GLAPixel_d *pix)
 Macro: Set a pixel in a grey-level alpha double image.

Gan_GLAPixel_d gan_image_get_pix_gla_d (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level alpha double image.

Gan_GLAPixel_fgan_image_get_pixptr_gla_f (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level alpha float image.

Gan_GLAPixel_f ** gan_image_get_pixarr_gla_f (Gan_Image *img)
 Return the pixel array from a grey-level alpha float image.

Gan_Bool gan_image_set_pix_gla_f (Gan_Image *img, unsigned row, unsigned col, struct Gan_GLAPixel_f *pix)
 Macro: Set a pixel in a grey-level alpha float image.

Gan_GLAPixel_f gan_image_get_pix_gla_f (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level alpha float image.

Gan_GLAPixel_igan_image_get_pixptr_gla_i (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level alpha int image.

Gan_GLAPixel_i ** gan_image_get_pixarr_gla_i (Gan_Image *img)
 Return the pixel array from a grey-level alpha int image.

Gan_Bool gan_image_set_pix_gla_i (Gan_Image *img, unsigned row, unsigned col, struct Gan_GLAPixel_i *pix)
 Macro: Set a pixel in a grey-level alpha int image.

Gan_GLAPixel_i gan_image_get_pix_gla_i (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level alpha int image.

Gan_GLAPixel_sgan_image_get_pixptr_gla_s (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level alpha short image.

Gan_GLAPixel_s ** gan_image_get_pixarr_gla_s (Gan_Image *img)
 Return the pixel array from a grey-level alpha short image.

Gan_Bool gan_image_set_pix_gla_s (Gan_Image *img, unsigned row, unsigned col, struct Gan_GLAPixel_s *pix)
 Macro: Set a pixel in a grey-level alpha short image.

Gan_GLAPixel_s gan_image_get_pix_gla_s (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level alpha short image.

Gan_GLAPixel_ucgan_image_get_pixptr_gla_uc (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level alpha unsigned char image.

Gan_GLAPixel_uc ** gan_image_get_pixarr_gla_uc (Gan_Image *img)
 Return the pixel array from a grey-level alpha unsigned char image.

Gan_Bool gan_image_set_pix_gla_uc (Gan_Image *img, unsigned row, unsigned col, struct Gan_GLAPixel_uc *pix)
 Macro: Set a pixel in a grey-level alpha unsigned char image.

Gan_GLAPixel_uc gan_image_get_pix_gla_uc (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level alpha unsigned char image.

Gan_GLAPixel_uigan_image_get_pixptr_gla_ui (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level alpha unsigned int image.

Gan_GLAPixel_ui ** gan_image_get_pixarr_gla_ui (Gan_Image *img)
 Return the pixel array from a grey-level alpha unsigned int image.

Gan_Bool gan_image_set_pix_gla_ui (Gan_Image *img, unsigned row, unsigned col, struct Gan_GLAPixel_ui *pix)
 Macro: Set a pixel in a grey-level alpha unsigned int image.

Gan_GLAPixel_ui gan_image_get_pix_gla_ui (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level alpha unsigned int image.

Gan_Bool gan_image_set_pix_gla_ui16 (Gan_Image *img, unsigned row, unsigned col, Gan_GLAPixel_ui16 *pix)
 Macro: Set a pixel in a grey-level alpha 16-bit unsigned image.

Gan_GLAPixel_ui16 gan_image_get_pix_gla_ui16 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level alpha 16-bit unsigned image.

Gan_Bool gan_image_set_pix_gla_ui32 (Gan_Image *img, unsigned row, unsigned col, Gan_GLAPixel_ui32 *pix)
 Macro: Set a pixel in a grey-level alpha 32-bit unsigned image.

Gan_GLAPixel_ui32 gan_image_get_pix_gla_ui32 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level alpha 32-bit unsigned image.

Gan_Bool gan_image_set_pix_gla_ui8 (Gan_Image *img, unsigned row, unsigned col, Gan_GLAPixel_ui8 *pix)
 Macro: Set a pixel in a grey-level alpha 8-bit unsigned image.

Gan_GLAPixel_ui8 gan_image_get_pix_gla_ui8 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level alpha 8-bit unsigned image.

Gan_GLAPixel_usgan_image_get_pixptr_gla_us (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level alpha unsigned short image.

Gan_GLAPixel_us ** gan_image_get_pixarr_gla_us (Gan_Image *img)
 Return the pixel array from a grey-level alpha unsigned short image.

Gan_Bool gan_image_set_pix_gla_us (Gan_Image *img, unsigned row, unsigned col, struct Gan_GLAPixel_us *pix)
 Macro: Set a pixel in a grey-level alpha unsigned short image.

Gan_GLAPixel_us gan_image_get_pix_gla_us (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level alpha unsigned short image.

void ** gan_image_get_pixptr_p (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a grey-level void * image.

void *** gan_image_get_pixarr_p (Gan_Image *img)
 Return the pixel array from a grey-level void * image.

Gan_Bool gan_image_set_pix_p (Gan_Image *img, unsigned row, unsigned col, void *pix)
 Macro: Set a pixel in a grey-level void * image.

void * gan_image_get_pix_p (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a grey-level void * image.

Gan_RGBPixel_dgan_image_get_pixptr_rgb_d (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB colour double image.

Gan_RGBPixel_d ** gan_image_get_pixarr_rgb_d (Gan_Image *img)
 Return the pixel array from a RGB colour double image.

Gan_Bool gan_image_set_pix_rgb_d (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBPixel_d *pix)
 Macro: Set a pixel in a RGB colour double image.

Gan_RGBPixel_d gan_image_get_pix_rgb_d (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB colour double image.

Gan_RGBPixel_fgan_image_get_pixptr_rgb_f (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB colour float image.

Gan_RGBPixel_f ** gan_image_get_pixarr_rgb_f (Gan_Image *img)
 Return the pixel array from a RGB colour float image.

Gan_Bool gan_image_set_pix_rgb_f (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBPixel_f *pix)
 Macro: Set a pixel in a RGB colour float image.

Gan_RGBPixel_f gan_image_get_pix_rgb_f (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB colour float image.

Gan_RGBPixel_igan_image_get_pixptr_rgb_i (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB colour int image.

Gan_RGBPixel_i ** gan_image_get_pixarr_rgb_i (Gan_Image *img)
 Return the pixel array from a RGB colour int image.

Gan_Bool gan_image_set_pix_rgb_i (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBPixel_i *pix)
 Macro: Set a pixel in a RGB colour int image.

Gan_RGBPixel_i gan_image_get_pix_rgb_i (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB colour int image.

Gan_RGBPixel_sgan_image_get_pixptr_rgb_s (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB colour short image.

Gan_RGBPixel_s ** gan_image_get_pixarr_rgb_s (Gan_Image *img)
 Return the pixel array from a RGB colour short image.

Gan_Bool gan_image_set_pix_rgb_s (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBPixel_s *pix)
 Macro: Set a pixel in a RGB colour short image.

Gan_RGBPixel_s gan_image_get_pix_rgb_s (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB colour short image.

Gan_RGBPixel_ucgan_image_get_pixptr_rgb_uc (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB colour unsigned char image.

Gan_RGBPixel_uc ** gan_image_get_pixarr_rgb_uc (Gan_Image *img)
 Return the pixel array from a RGB colour unsigned char image.

Gan_Bool gan_image_set_pix_rgb_uc (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBPixel_uc *pix)
 Macro: Set a pixel in a RGB colour unsigned char image.

Gan_RGBPixel_uc gan_image_get_pix_rgb_uc (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB colour unsigned char image.

Gan_RGBPixel_uigan_image_get_pixptr_rgb_ui (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB colour unsigned int image.

Gan_RGBPixel_ui ** gan_image_get_pixarr_rgb_ui (Gan_Image *img)
 Return the pixel array from a RGB colour unsigned int image.

Gan_Bool gan_image_set_pix_rgb_ui (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBPixel_ui *pix)
 Macro: Set a pixel in a RGB colour unsigned int image.

Gan_RGBPixel_ui gan_image_get_pix_rgb_ui (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB colour unsigned int image.

Gan_Bool gan_image_set_pix_rgb_ui16 (Gan_Image *img, unsigned row, unsigned col, Gan_RGBPixel_ui16 *pix)
 Macro: Set a pixel in a RGB colour 16-bit unsigned image.

Gan_RGBPixel_ui16 gan_image_get_pix_rgb_ui16 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB colour 16-bit unsigned image.

Gan_Bool gan_image_set_pix_rgb_ui32 (Gan_Image *img, unsigned row, unsigned col, Gan_RGBPixel_ui32 *pix)
 Macro: Set a pixel in a RGB colour 32-bit unsigned image.

Gan_RGBPixel_ui32 gan_image_get_pix_rgb_ui32 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB colour 32-bit unsigned image.

Gan_Bool gan_image_set_pix_rgb_ui8 (Gan_Image *img, unsigned row, unsigned col, Gan_RGBPixel_ui8 *pix)
 Macro: Set a pixel in a RGB colour 8-bit unsigned image.

Gan_RGBPixel_ui8 gan_image_get_pix_rgb_ui8 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB colour 8-bit unsigned image.

Gan_RGBPixel_usgan_image_get_pixptr_rgb_us (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB colour unsigned short image.

Gan_RGBPixel_us ** gan_image_get_pixarr_rgb_us (Gan_Image *img)
 Return the pixel array from a RGB colour unsigned short image.

Gan_Bool gan_image_set_pix_rgb_us (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBPixel_us *pix)
 Macro: Set a pixel in a RGB colour unsigned short image.

Gan_RGBPixel_us gan_image_get_pix_rgb_us (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB colour unsigned short image.

Gan_RGBAPixel_dgan_image_get_pixptr_rgba_d (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB-colour alpha double image.

Gan_RGBAPixel_d ** gan_image_get_pixarr_rgba_d (Gan_Image *img)
 Return the pixel array from a RGB-colour alpha double image.

Gan_Bool gan_image_set_pix_rgba_d (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBAPixel_d *pix)
 Macro: Set a pixel in a RGB-colour alpha double image.

Gan_RGBAPixel_d gan_image_get_pix_rgba_d (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB-colour alpha double image.

Gan_RGBAPixel_fgan_image_get_pixptr_rgba_f (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB-colour alpha float image.

Gan_RGBAPixel_f ** gan_image_get_pixarr_rgba_f (Gan_Image *img)
 Return the pixel array from a RGB-colour alpha float image.

Gan_Bool gan_image_set_pix_rgba_f (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBAPixel_f *pix)
 Macro: Set a pixel in a RGB-colour alpha float image.

Gan_RGBAPixel_f gan_image_get_pix_rgba_f (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB-colour alpha float image.

Gan_RGBAPixel_igan_image_get_pixptr_rgba_i (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB-colour alpha int image.

Gan_RGBAPixel_i ** gan_image_get_pixarr_rgba_i (Gan_Image *img)
 Return the pixel array from a RGB-colour alpha int image.

Gan_Bool gan_image_set_pix_rgba_i (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBAPixel_i *pix)
 Macro: Set a pixel in a RGB-colour alpha int image.

Gan_RGBAPixel_i gan_image_get_pix_rgba_i (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB-colour alpha int image.

Gan_RGBAPixel_sgan_image_get_pixptr_rgba_s (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB-colour alpha short image.

Gan_RGBAPixel_s ** gan_image_get_pixarr_rgba_s (Gan_Image *img)
 Return the pixel array from a RGB-colour alpha short image.

Gan_Bool gan_image_set_pix_rgba_s (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBAPixel_s *pix)
 Macro: Set a pixel in a RGB-colour alpha short image.

Gan_RGBAPixel_s gan_image_get_pix_rgba_s (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB-colour alpha short image.

Gan_RGBAPixel_ucgan_image_get_pixptr_rgba_uc (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB-colour alpha unsigned char image.

Gan_RGBAPixel_uc ** gan_image_get_pixarr_rgba_uc (Gan_Image *img)
 Return the pixel array from a RGB-colour alpha unsigned char image.

Gan_Bool gan_image_set_pix_rgba_uc (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBAPixel_uc *pix)
 Macro: Set a pixel in a RGB-colour alpha unsigned char image.

Gan_RGBAPixel_uc gan_image_get_pix_rgba_uc (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB-colour alpha unsigned char image.

Gan_RGBAPixel_uigan_image_get_pixptr_rgba_ui (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB-colour alpha unsigned int image.

Gan_RGBAPixel_ui ** gan_image_get_pixarr_rgba_ui (Gan_Image *img)
 Return the pixel array from a RGB-colour alpha unsigned int image.

Gan_Bool gan_image_set_pix_rgba_ui (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBAPixel_ui *pix)
 Macro: Set a pixel in a RGB-colour alpha unsigned int image.

Gan_RGBAPixel_ui gan_image_get_pix_rgba_ui (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB-colour alpha unsigned int image.

Gan_Bool gan_image_set_pix_rgba_ui16 (Gan_Image *img, unsigned row, unsigned col, Gan_RGBAPixel_ui16 *pix)
 Macro: Set a pixel in a RGB-colour alpha 16-bit unsigned image.

Gan_RGBAPixel_ui16 gan_image_get_pix_rgba_ui16 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB-colour alpha 16-bit unsigned image.

Gan_Bool gan_image_set_pix_rgba_ui32 (Gan_Image *img, unsigned row, unsigned col, Gan_RGBAPixel_ui32 *pix)
 Macro: Set a pixel in a RGB-colour alpha 32-bit unsigned image.

Gan_RGBAPixel_ui32 gan_image_get_pix_rgba_ui32 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB-colour alpha 32-bit unsigned image.

Gan_Bool gan_image_set_pix_rgba_ui8 (Gan_Image *img, unsigned row, unsigned col, Gan_RGBAPixel_ui8 *pix)
 Macro: Set a pixel in a RGB-colour alpha 8-bit unsigned image.

Gan_RGBAPixel_ui8 gan_image_get_pix_rgba_ui8 (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB-colour alpha 8-bit unsigned image.

Gan_RGBAPixel_usgan_image_get_pixptr_rgba_us (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a RGB-colour alpha unsigned short image.

Gan_RGBAPixel_us ** gan_image_get_pixarr_rgba_us (Gan_Image *img)
 Return the pixel array from a RGB-colour alpha unsigned short image.

Gan_Bool gan_image_set_pix_rgba_us (Gan_Image *img, unsigned row, unsigned col, struct Gan_RGBAPixel_us *pix)
 Macro: Set a pixel in a RGB-colour alpha unsigned short image.

Gan_RGBAPixel_us gan_image_get_pix_rgba_us (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a RGB-colour alpha unsigned short image.

Gan_Vector2gan_image_get_pixptr_vfield2D_d (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a 2D vector-field double image.

Gan_Vector2 ** gan_image_get_pixarr_vfield2D_d (Gan_Image *img)
 Return the pixel array from a 2D vector-field double image.

Gan_Bool gan_image_set_pix_vfield2D_d (Gan_Image *img, unsigned row, unsigned col, struct Gan_Vector2 *pix)
 Macro: Set a pixel in a 2D vector-field double image.

Gan_Vector2 gan_image_get_pix_vfield2D_d (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a 2D vector-field double image.

Gan_Vector2_fgan_image_get_pixptr_vfield2D_f (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a 2D vector-field float image.

Gan_Vector2_f ** gan_image_get_pixarr_vfield2D_f (Gan_Image *img)
 Return the pixel array from a 2D vector-field float image.

Gan_Bool gan_image_set_pix_vfield2D_f (Gan_Image *img, unsigned row, unsigned col, struct Gan_Vector2_f *pix)
 Macro: Set a pixel in a 2D vector-field float image.

Gan_Vector2_f gan_image_get_pix_vfield2D_f (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a 2D vector-field float image.

Gan_Vector2_igan_image_get_pixptr_vfield2D_i (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a 2D vector-field int image.

Gan_Vector2_i ** gan_image_get_pixarr_vfield2D_i (Gan_Image *img)
 Return the pixel array from a 2D vector-field int image.

Gan_Bool gan_image_set_pix_vfield2D_i (Gan_Image *img, unsigned row, unsigned col, struct Gan_Vector2_i *pix)
 Macro: Set a pixel in a 2D vector-field int image.

Gan_Vector2_i gan_image_get_pix_vfield2D_i (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a 2D vector-field int image.

Gan_Vector2_sgan_image_get_pixptr_vfield2D_s (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a 2D vector-field short image.

Gan_Vector2_s ** gan_image_get_pixarr_vfield2D_s (Gan_Image *img)
 Return the pixel array from a 2D vector-field short image.

Gan_Bool gan_image_set_pix_vfield2D_s (Gan_Image *img, unsigned row, unsigned col, struct Gan_Vector2_s *pix)
 Macro: Set a pixel in a 2D vector-field short image.

Gan_Vector2_s gan_image_get_pix_vfield2D_s (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a 2D vector-field short image.

Gan_Vector3gan_image_get_pixptr_vfield3D_d (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a 3D vector-field double image.

Gan_Vector3 ** gan_image_get_pixarr_vfield3D_d (Gan_Image *img)
 Return the pixel array from a 3D vector-field double image.

Gan_Bool gan_image_set_pix_vfield3D_d (Gan_Image *img, unsigned row, unsigned col, struct Gan_Vector3 *pix)
 Macro: Set a pixel in a 3D vector-field double image.

Gan_Vector3 gan_image_get_pix_vfield3D_d (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a 3D vector-field double image.

Gan_Vector3_fgan_image_get_pixptr_vfield3D_f (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a 3D vector-field float image.

Gan_Vector3_f ** gan_image_get_pixarr_vfield3D_f (Gan_Image *img)
 Return the pixel array from a 3D vector-field float image.

Gan_Bool gan_image_set_pix_vfield3D_f (Gan_Image *img, unsigned row, unsigned col, struct Gan_Vector3_f *pix)
 Macro: Set a pixel in a 3D vector-field float image.

Gan_Vector3_f gan_image_get_pix_vfield3D_f (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a 3D vector-field float image.

Gan_Vector3_igan_image_get_pixptr_vfield3D_i (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a 3D vector-field int image.

Gan_Vector3_i ** gan_image_get_pixarr_vfield3D_i (Gan_Image *img)
 Return the pixel array from a 3D vector-field int image.

Gan_Bool gan_image_set_pix_vfield3D_i (Gan_Image *img, unsigned row, unsigned col, struct Gan_Vector3_i *pix)
 Macro: Set a pixel in a 3D vector-field int image.

Gan_Vector3_i gan_image_get_pix_vfield3D_i (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a 3D vector-field int image.

Gan_Vector3_sgan_image_get_pixptr_vfield3D_s (Gan_Image *img, unsigned row, unsigned col)
 Return a pointer to a pixel from a 3D vector-field short image.

Gan_Vector3_s ** gan_image_get_pixarr_vfield3D_s (Gan_Image *img)
 Return the pixel array from a 3D vector-field short image.

Gan_Bool gan_image_set_pix_vfield3D_s (Gan_Image *img, unsigned row, unsigned col, struct Gan_Vector3_s *pix)
 Macro: Set a pixel in a 3D vector-field short image.

Gan_Vector3_s gan_image_get_pix_vfield3D_s (Gan_Image *img, unsigned row, unsigned col)
 Macro: Return a pixel from a 3D vector-field short image.

unsigned char gan_pixel_rgbuc_to_yuc (Gan_RGBPixel_uc *rgb)
 Convert RGB unsigned char pixel to grey-level unsigned char pixel.

unsigned short gan_pixel_rgbuc_to_yus (Gan_RGBPixel_uc *rgb)
 Convert RGB unsigned char pixel to grey-level unsigned short pixel.

unsigned int gan_pixel_rgbuc_to_yui (Gan_RGBPixel_uc *rgb)
 Convert RGB unsigned char pixel to grey-level unsigned int pixel.

unsigned char gan_pixel_rgbus_to_yuc (Gan_RGBPixel_us *rgb)
 Convert RGB unsigned short pixel to grey-level unsigned char pixel.

unsigned short gan_pixel_rgbus_to_yus (Gan_RGBPixel_us *rgb)
 Convert RGB unsigned short pixel to grey-level unsigned short pixel.

float gan_pixel_rgbui_to_yf (Gan_RGBPixel_ui *rgb)
 Convert RGB float pixel to grey-level float pixel.

float gan_pixel_rgbf_to_yf (Gan_RGBPixel_f *rgb)
 Convert RGB float pixel to grey-level float pixel.

double gan_pixel_rgbd_to_yd (Gan_RGBPixel_d *rgb)
 Convert RGB double pixel to grey-level double pixel.

unsigned char gan_pixel_rgbauc_to_yuc (Gan_RGBAPixel_uc *rgba)
 Convert RGBA unsigned char pixel to grey-level unsigned char pixel.

unsigned short gan_pixel_rgbauc_to_yus (Gan_RGBAPixel_uc *rgba)
 Convert RGBA unsigned char pixel to grey-level unsigned short pixel.

unsigned int gan_pixel_rgbauc_to_yui (Gan_RGBAPixel_uc *rgba)
 Convert RGBA unsigned char pixel to grey-level unsigned int pixel.

unsigned char gan_pixel_rgbaus_to_yuc (Gan_RGBAPixel_us *rgba)
 Convert RGBA unsigned short pixel to grey-level unsigned char pixel.

unsigned short gan_pixel_rgbaus_to_yus (Gan_RGBAPixel_us *rgba)
 Convert RGBA unsigned short pixel to grey-level unsigned short pixel.

float gan_pixel_rgbaui_to_yf (Gan_RGBAPixel_ui *rgba)
 Convert RGBA float pixel to grey-level float pixel.

float gan_pixel_rgbaf_to_yf (Gan_RGBAPixel_f *rgba)
 Convert RGBA float pixel to grey-level float pixel.

double gan_pixel_rgbad_to_yd (Gan_RGBAPixel_d *rgba)
 Convert RGBA double pixel to grey-level double pixel.

Gan_Bool gan_image_convert_pixel (Gan_Pixel *inpix, Gan_ImageFormat format, Gan_Type type, Gan_Pixel *outpix, int *error_code)
 Convert a pixel to the given format and type.

double gan_image_convert_scale (Gan_Type gtFromType, Gan_Type gtToType)
 Return the scaling involved in converting a pixel from one type to another.

Gan_Bool gan_image_offset_pixel_q (Gan_Pixel *pixel, double offset, Gan_Pixel *offset_pixel)
 Offset pixel values.

Gan_Bool gan_image_scale_pixel_q (Gan_Pixel *pixel, double scale, Gan_Pixel *scaled_pixel)
 Scale pixel values.

Gan_Bool gan_image_divide_pixel_q (Gan_Pixel *pixel, double scale, Gan_Pixel *scaled_pixel)
 Divide pixel values by scalar.

Gan_Bool gan_image_fill_zero_pixel (Gan_Pixel *pixel)
 Fill a pixel with zero value(s).

unsigned char gan_pixel_us_to_uc (unsigned short x)
 Macro: Convert a pixel field from unsigned short to unsigned char type.

unsigned char gan_pixel_ui_to_uc (unsigned x)
 Macro: Convert a pixel field from unsigned int to unsigned char type.

unsigned char gan_pixel_f_to_uc (float x)
 Macro: Convert a pixel field from float to unsigned char type.

unsigned char gan_pixel_d_to_uc (double x)
 Macro: Convert a pixel field from double to unsigned char type.

unsigned short gan_pixel_uc_to_us (unsigned char x)
 Macro: Convert a pixel field from unsigned char to unsigned short type.

unsigned short gan_pixel_ui_to_us (unsigned x)
 Macro: Convert a pixel field from unsigned int to unsigned short type.

short gan_pixel_i_to_s (int x)
 Macro: Convert a pixel field from int to short type.

unsigned short gan_pixel_f_to_us (float x)
 Macro: Convert a pixel field from float to unsigned short type.

unsigned short gan_pixel_d_to_us (double x)
 Macro: Convert a pixel field from double to unsigned short type.

unsigned int gan_pixel_uc_to_ui (unsigned char x)
 Macro: Convert a pixel field from unsigned char to unsigned int type.

unsigned int gan_pixel_us_to_ui (unsigned short x)
 Macro: Convert a pixel field from unsigned short to unsigned int type.

int gan_pixel_s_to_i (short x)
 Macro: Convert a pixel field from short to int type.

unsigned int gan_pixel_f_to_ui (float x)
 Macro: Convert a pixel field from float to unsigned int type.

unsigned int gan_pixel_d_to_ui (double x)
 Macro: Convert a pixel field from double to unsigned int type.

float gan_pixel_uc_to_f (unsigned char x)
 Macro: Convert a pixel field from unsigned char to float type.

float gan_pixel_us_to_f (unsigned short x)
 Macro: Convert a pixel field from unsigned short to float type.

float gan_pixel_ui_to_f (unsigned int x)
 Macro: Convert a pixel field from unsigned int to float type.

double gan_pixel_uc_to_d (unsigned char x)
 Macro: Convert a pixel field from unsigned char to double type.

double gan_pixel_us_to_d (unsigned short x)
 Macro: Convert a pixel field from unsigned short to double type.

double gan_pixel_ui_to_d (unsigned int x)
 Macro: Convert a pixel field from unsigned int to double type.

int gan_pixel_f_to_i (float x)
 Macro: Convert a pixel field from float to int type.

int gan_pixel_d_to_i (double x)
 Macro: Convert a pixel field from double to int type.

short gan_pixel_f_to_s (float x)
 Macro: Convert a pixel field from float to short type.

short gan_pixel_d_to_s (double x)
 Macro: Convert a pixel field from double to short type.

float gan_pixel_s_to_f (short x)
 Macro: Convert a pixel field from short to float type.

double gan_pixel_s_to_d (short x)
 Macro: Convert a pixel field from short to double type.

float gan_pixel_i_to_f (int x)
 Macro: Convert a pixel field from int to float type.

double gan_pixel_i_to_d (int x)
 Macro: Convert a pixel field from int to double type.

Gan_Bool gan_image_convert_pixel_q (Gan_Pixel *inpix, Gan_ImageFormat format, Gan_Type type, Gan_Pixel *outpix)
 Macro: Convert pixel.

Gan_Bool gan_image_convert_pixel_i (Gan_Pixel *pix, Gan_ImageFormat format, Gan_Type type)
 Macro: Convert pixel in-place.

Gan_Bool gan_image_offset_pixel_i (Gan_Pixel *pixel, double offset)
 Macro: Offset pixel in-place.

Gan_Bool gan_image_scale_pixel_i (Gan_Pixel *pixel, double scale)
 Macro: Scale pixel in-place.

Gan_Bool gan_image_divide_pixel_i (Gan_Pixel *pixel, double scale)
 Macro: Divide pixel by scalar pixel in-place.


Typedef Documentation

typedef struct Gan_GLAPixel_d Gan_GLAPixel_d
 

Structure defining grey-level double precision floating point pixel with alpha channel.

typedef struct Gan_GLAPixel_f Gan_GLAPixel_f
 

Structure defining grey-level single precision floating point pixel with alpha channel.

typedef struct Gan_GLAPixel_i Gan_GLAPixel_i
 

Structure defining grey-level signed integer pixel with alpha channel.

typedef struct Gan_GLAPixel_s Gan_GLAPixel_s
 

Structure defining grey-level short integer pixel with alpha channel.

typedef struct Gan_GLAPixel_uc Gan_GLAPixel_uc
 

Structure defining grey-level unsigned character pixel with alpha channel.

typedef struct Gan_GLAPixel_ui Gan_GLAPixel_ui
 

Structure defining grey-level unsigned integer pixel with alpha channel.

typedef struct Gan_GLAPixel_us Gan_GLAPixel_us
 

Structure defining grey-level unsigned short pixel with alpha channel.

typedef struct Gan_Pixel Gan_Pixel
 

Structure definition for image pixel of any format or type.

typedef struct Gan_RGBAPixel_d Gan_RGBAPixel_d
 

Structure defining RGB double precision floating point pixel with alpha channel.

typedef struct Gan_RGBAPixel_f Gan_RGBAPixel_f
 

Structure defining RGB single precision floating point pixel with alpha channel.

typedef struct Gan_RGBAPixel_i Gan_RGBAPixel_i
 

Structure defining RGB signed integer pixel with alpha channel.

typedef struct Gan_RGBAPixel_s Gan_RGBAPixel_s
 

Structure defining RGB signed short integer pixel with alpha channel.

typedef struct Gan_RGBAPixel_uc Gan_RGBAPixel_uc
 

Structure defining RGB unsigned character pixel with alpha channel.

typedef struct Gan_RGBAPixel_ui Gan_RGBAPixel_ui
 

Structure defining RGB unsigned integer pixel with alpha channel.

typedef struct Gan_RGBAPixel_us Gan_RGBAPixel_us
 

Structure defining RGB unsigned short integer pixel with alpha channel.

typedef struct Gan_RGBPixel_d Gan_RGBPixel_d
 

Structure defining RGB colour double precision floating point pixel.

typedef struct Gan_RGBPixel_f Gan_RGBPixel_f
 

Structure defining RGB colour singe precision floating point pixel.

typedef struct Gan_RGBPixel_i Gan_RGBPixel_i
 

Structure defining RGB colour signed integer pixel.

typedef struct Gan_RGBPixel_s Gan_RGBPixel_s
 

Structure defining RGB colour signed short integer pixel.

typedef struct Gan_RGBPixel_uc Gan_RGBPixel_uc
 

Structure defining RGB colour unsigned character pixel.

typedef struct Gan_RGBPixel_ui Gan_RGBPixel_ui
 

Structure defining RGB colour unsigned integer pixel.

typedef struct Gan_RGBPixel_us Gan_RGBPixel_us
 

Structure defining RGB colour unsigned short integer pixel.


Enumeration Type Documentation

enum Gan_ImageFormat
 

Different formats of image pixel.

Enumeration values:
GAN_GREY_LEVEL_IMAGE  grey-level images
GAN_GREY_LEVEL_ALPHA_IMAGE  grey-level images with alpha channel
GAN_RGB_COLOUR_IMAGE  RGB colour images
GAN_RGB_COLOUR_ALPHA_IMAGE  RGB colour images with alpha channel
GAN_VECTOR_FIELD_2D  2D image of 2D vectors


Function Documentation

Gan_Bool gan_image_convert_pixel Gan_Pixel   inpix,
Gan_ImageFormat    format,
Gan_Type    type,
Gan_Pixel   outpix,
int *    error_code
 

Convert a pixel to the given format and type.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Convert pixel inpix to the given format and type, writing the result into pixel outpix. If error_code is not NULL, an error condition is returned in the error_code pointer; otherwise error_code is NULL and the Gandalf error handler gan_err_register() is invoked. In either case GAN_FALSE is returned.

Gan_Bool gan_image_convert_pixel_i Gan_Pixel   pix,
Gan_ImageFormat    format,
Gan_Type    type
 

Macro: Convert pixel in-place.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Converts pix to the given format and type, overwriting pix with the result.

Gan_Bool gan_image_convert_pixel_q Gan_Pixel   inpix,
Gan_ImageFormat    format,
Gan_Type    type,
Gan_Pixel   outpix
 

Macro: Convert pixel.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Converts inpix to the given format and type, producing an ouput pixel in outpix.

double gan_image_convert_scale Gan_Type    gtFromType,
Gan_Type    gtToType
 

Return the scaling involved in converting a pixel from one type to another.

Gan_Bool gan_image_divide_pixel_i Gan_Pixel   pixel,
double    scale
 

Macro: Divide pixel by scalar pixel in-place.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Divides all the channels of the given pixel by the given scale factor, overwriting pixel with the result.

Gan_Bool gan_image_divide_pixel_q Gan_Pixel   pixel,
double    scale,
Gan_Pixel   scaled_pixel
 

Divide pixel values by scalar.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Divide each channel of pixel by the given scale factor, writing the result into scaled_pixel.

Gan_Bool gan_image_fill_zero_pixel Gan_Pixel   pixel
 

Fill a pixel with zero value(s).

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
You should set the format and type of the pixel before calling this function.

Gan_Pixel gan_image_get_pix Gan_Image   img,
unsigned    row,
unsigned    col
 

Gets a pixel from an image.

Parameters:
img The image
row The row position of the pixel
col The column position of the pixel
Returns:
The pixel at the given position
Gets the pixel from image img at position row, col.
See also:
gan_image_set_pix().

Gan_BitWord gan_image_get_pix_b Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level Gan_Bool image.

Returns the value of the pixel at position row, col in grey-level image img.

double gan_image_get_pix_gl_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level double image.

Returns the value of the pixel at position row, col in grey-level image img.

float gan_image_get_pix_gl_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level float image.

Returns the value of the pixel at position row, col in grey-level image img.

int gan_image_get_pix_gl_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level int image.

Returns the value of the pixel at position row, col in grey-level image img.

short gan_image_get_pix_gl_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level short image.

Returns the value of the pixel at position row, col in grey-level image img.

unsigned char gan_image_get_pix_gl_uc Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level unsigned char image.

Returns the value of the pixel at position row, col in grey-level image img.

unsigned int gan_image_get_pix_gl_ui Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level unsigned int image.

Returns the value of the pixel at position row, col in grey-level image img.

gan_ui16 gan_image_get_pix_gl_ui16 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level 16-bit unsigned image.

Returns the value of the pixel at position row, col in grey-level image img.

gan_ui32 gan_image_get_pix_gl_ui32 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level 32-bit unsigned image.

Returns the value of the pixel at position row, col in grey-level image img.

gan_ui8 gan_image_get_pix_gl_ui8 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level 8-bit unsigned image.

Returns the value of the pixel at position row, col in grey-level image img.

unsigned short gan_image_get_pix_gl_us Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level unsigned short image.

Returns the value of the pixel at position row, col in grey-level image img.

struct Gan_GLAPixel_d gan_image_get_pix_gla_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level alpha double image.

Returns the value of the pixel at position row, col in grey-level alpha double image img.

struct Gan_GLAPixel_f gan_image_get_pix_gla_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level alpha float image.

Returns the value of the pixel at position row, col in grey-level alpha float image img.

struct Gan_GLAPixel_i gan_image_get_pix_gla_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level alpha int image.

Returns the value of the pixel at position row, col in grey-level alpha int image img.

struct Gan_GLAPixel_s gan_image_get_pix_gla_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level alpha short image.

Returns the value of the pixel at position row, col in grey-level alpha short image img.

struct Gan_GLAPixel_uc gan_image_get_pix_gla_uc Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level alpha unsigned char image.

Returns the value of the pixel at position row, col in grey-level alpha unsigned char image img.

struct Gan_GLAPixel_ui gan_image_get_pix_gla_ui Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level alpha unsigned int image.

Returns the value of the pixel at position row, col in grey-level alpha unsigned int image img.

Gan_GLAPixel_ui16 gan_image_get_pix_gla_ui16 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level alpha 16-bit unsigned image.

Returns the value of the pixel at position row, col in grey-level alpha 16-bit unsigned image img.

Gan_GLAPixel_ui32 gan_image_get_pix_gla_ui32 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level alpha 32-bit unsigned image.

Returns the value of the pixel at position row, col in grey-level alpha 32-bit unsigned image img.

Gan_GLAPixel_ui8 gan_image_get_pix_gla_ui8 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level alpha 8-bit unsigned image.

Returns the value of the pixel at position row, col in grey-level alpha 8-bit unsigned image img.

struct Gan_GLAPixel_us gan_image_get_pix_gla_us Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level alpha unsigned short image.

Returns the value of the pixel at position row, col in grey-level alpha unsigned short image img.

void* gan_image_get_pix_p Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a grey-level void * image.

Returns the value of the pixel at position row, col in grey-level image img.

struct Gan_RGBPixel_d gan_image_get_pix_rgb_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB colour double image.

Returns the value of the pixel at position row, col in RGB colour double image img.

struct Gan_RGBPixel_f gan_image_get_pix_rgb_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB colour float image.

Returns the value of the pixel at position row, col in RGB colour float image img.

struct Gan_RGBPixel_i gan_image_get_pix_rgb_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB colour int image.

Returns the value of the pixel at position row, col in RGB colour int image img.

struct Gan_RGBPixel_s gan_image_get_pix_rgb_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB colour short image.

Returns the value of the pixel at position row, col in RGB colour short image img.

struct Gan_RGBPixel_uc gan_image_get_pix_rgb_uc Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB colour unsigned char image.

Returns the value of the pixel at position row, col in RGB colour unsigned char image img.

struct Gan_RGBPixel_ui gan_image_get_pix_rgb_ui Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB colour unsigned int image.

Returns the value of the pixel at position row, col in RGB colour unsigned int image img.

Gan_RGBPixel_ui16 gan_image_get_pix_rgb_ui16 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB colour 16-bit unsigned image.

Returns the value of the pixel at position row, col in RGB colour 16-bit unsigned image img.

Gan_RGBPixel_ui32 gan_image_get_pix_rgb_ui32 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB colour 32-bit unsigned image.

Returns the value of the pixel at position row, col in RGB colour 32-bit unsigned image img.

Gan_RGBPixel_ui8 gan_image_get_pix_rgb_ui8 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB colour 8-bit unsigned image.

Returns the value of the pixel at position row, col in RGB colour 8-bit unsigned image img.

struct Gan_RGBPixel_us gan_image_get_pix_rgb_us Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB colour unsigned short image.

Returns the value of the pixel at position row, col in RGB colour unsigned short image img.

struct Gan_RGBAPixel_d gan_image_get_pix_rgba_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB-colour alpha double image.

Returns the value of the pixel at position row, col in RGB-colour alpha double image img.

struct Gan_RGBAPixel_f gan_image_get_pix_rgba_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB-colour alpha float image.

Returns the value of the pixel at position row, col in RGB-colour alpha float image img.

struct Gan_RGBAPixel_i gan_image_get_pix_rgba_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB-colour alpha int image.

Returns the value of the pixel at position row, col in RGB-colour alpha int image img.

struct Gan_RGBAPixel_s gan_image_get_pix_rgba_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB-colour alpha short image.

Returns the value of the pixel at position row, col in RGB-colour alpha short image img.

struct Gan_RGBAPixel_uc gan_image_get_pix_rgba_uc Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB-colour alpha unsigned char image.

Returns the value of the pixel at position row, col in RGB-colour alpha unsigned char image img.

struct Gan_RGBAPixel_ui gan_image_get_pix_rgba_ui Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB-colour alpha unsigned int image.

Returns the value of the pixel at position row, col in RGB-colour alpha unsigned int image img.

Gan_RGBAPixel_ui16 gan_image_get_pix_rgba_ui16 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB-colour alpha 16-bit unsigned image.

Returns the value of the pixel at position row, col in RGB-colour alpha 16-bit unsigned image img.

Gan_RGBAPixel_ui32 gan_image_get_pix_rgba_ui32 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB-colour alpha 32-bit unsigned image.

Returns the value of the pixel at position row, col in RGB-colour alpha 32-bit unsigned image img.

Gan_RGBAPixel_ui8 gan_image_get_pix_rgba_ui8 Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB-colour alpha 8-bit unsigned image.

Returns the value of the pixel at position row, col in RGB-colour alpha 8-bit unsigned image img.

struct Gan_RGBAPixel_us gan_image_get_pix_rgba_us Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a RGB-colour alpha unsigned short image.

Returns the value of the pixel at position row, col in RGB-colour alpha unsigned short image img.

struct Gan_Vector2 gan_image_get_pix_vfield2D_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a 2D vector-field double image.

Returns the value of the pixel at position row, col in 2D vector-field double image img.

struct Gan_Vector2_f gan_image_get_pix_vfield2D_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a 2D vector-field float image.

Returns the value of the pixel at position row, col in 2D vector-field float image img.

struct Gan_Vector2_i gan_image_get_pix_vfield2D_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a 2D vector-field int image.

Returns the value of the pixel at position row, col in 2D vector-field int image img.

struct Gan_Vector2_s gan_image_get_pix_vfield2D_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a 2D vector-field short image.

Returns the value of the pixel at position row, col in 2D vector-field short image img.

struct Gan_Vector3 gan_image_get_pix_vfield3D_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a 3D vector-field double image.

Returns the value of the pixel at position row, col in 3D vector-field double image img.

struct Gan_Vector3_f gan_image_get_pix_vfield3D_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a 3D vector-field float image.

Returns the value of the pixel at position row, col in 3D vector-field float image img.

struct Gan_Vector3_i gan_image_get_pix_vfield3D_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a 3D vector-field int image.

Returns the value of the pixel at position row, col in 3D vector-field int image img.

struct Gan_Vector3_s gan_image_get_pix_vfield3D_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Macro: Return a pixel from a 3D vector-field short image.

Returns the value of the pixel at position row, col in 3D vector-field short image img.

Gan_Bool gan_image_get_pix_zero Gan_Image   img,
unsigned    row,
unsigned    col
 

Gets a pixel from an image and compares it with zero.

Parameters:
img The image
row The row position of the pixel
col The column position of the pixel
Returns:
GAN_TRUE if the pixel is zero, GAN_FALSE otherwise.
Gets a pixel from an image and compares it with zero.
See also:
gan_image_get_pix().

double** gan_image_get_pixarr_gl_d Gan_Image   img
 

Return the pixel array from a grey-level double image.

Returns the pixel array from the grey-level double image img.

float** gan_image_get_pixarr_gl_f Gan_Image   img
 

Return the pixel array from a grey-level float image.

Returns the pixel array from the grey-level float image img.

int** gan_image_get_pixarr_gl_i Gan_Image   img
 

Return the pixel array from a grey-level int image.

Returns the pixel array from the grey-level int image img.

short** gan_image_get_pixarr_gl_s Gan_Image   img
 

Return the pixel array from a grey-level short image.

Returns the pixel array from the grey-level short image img.

unsigned char** gan_image_get_pixarr_gl_uc Gan_Image   img
 

Return the pixel array from a grey-level unsigned char image.

Returns the pixel array from the grey-level unsigned char image img.

unsigned int** gan_image_get_pixarr_gl_ui Gan_Image   img
 

Return the pixel array from a grey-level unsigned int image.

Returns the pixel array from the grey-level unsigned int image img.

unsigned short** gan_image_get_pixarr_gl_us Gan_Image   img
 

Return the pixel array from a grey-level unsigned short image.

Returns the pixel array from the grey-level unsigned short image img.

struct Gan_GLAPixel_d** gan_image_get_pixarr_gla_d Gan_Image   img
 

Return the pixel array from a grey-level alpha double image.

Returns the pixel array for the grey-level alpha double image img.

struct Gan_GLAPixel_f** gan_image_get_pixarr_gla_f Gan_Image   img
 

Return the pixel array from a grey-level alpha float image.

Returns the pixel array for the grey-level alpha float image img.

struct Gan_GLAPixel_i** gan_image_get_pixarr_gla_i Gan_Image   img
 

Return the pixel array from a grey-level alpha int image.

Returns the pixel array for the grey-level alpha int image img.

struct Gan_GLAPixel_s** gan_image_get_pixarr_gla_s Gan_Image   img
 

Return the pixel array from a grey-level alpha short image.

Returns the pixel array for the grey-level alpha short image img.

struct Gan_GLAPixel_uc** gan_image_get_pixarr_gla_uc Gan_Image   img
 

Return the pixel array from a grey-level alpha unsigned char image.

Returns the pixel array for the grey-level alpha unsigned char image img.

struct Gan_GLAPixel_ui** gan_image_get_pixarr_gla_ui Gan_Image   img
 

Return the pixel array from a grey-level alpha unsigned int image.

Returns the pixel array for the grey-level alpha unsigned int image img.

struct Gan_GLAPixel_us** gan_image_get_pixarr_gla_us Gan_Image   img
 

Return the pixel array from a grey-level alpha unsigned short image.

Returns the pixel array for the grey-level alpha unsigned short image img.

void* ** gan_image_get_pixarr_p Gan_Image   img
 

Return the pixel array from a grey-level void * image.

Returns the pixel array from the grey-level void * image img.

struct Gan_RGBPixel_d** gan_image_get_pixarr_rgb_d Gan_Image   img
 

Return the pixel array from a RGB colour double image.

Returns the pixel array for the RGB colour double image img.

struct Gan_RGBPixel_f** gan_image_get_pixarr_rgb_f Gan_Image   img
 

Return the pixel array from a RGB colour float image.

Returns the pixel array for the RGB colour float image img.

struct Gan_RGBPixel_i** gan_image_get_pixarr_rgb_i Gan_Image   img
 

Return the pixel array from a RGB colour int image.

Returns the pixel array for the RGB colour int image img.

struct Gan_RGBPixel_s** gan_image_get_pixarr_rgb_s Gan_Image   img
 

Return the pixel array from a RGB colour short image.

Returns the pixel array for the RGB colour short image img.

struct Gan_RGBPixel_uc** gan_image_get_pixarr_rgb_uc Gan_Image   img
 

Return the pixel array from a RGB colour unsigned char image.

Returns the pixel array for the RGB colour unsigned char image img.

struct Gan_RGBPixel_ui** gan_image_get_pixarr_rgb_ui Gan_Image   img
 

Return the pixel array from a RGB colour unsigned int image.

Returns the pixel array for the RGB colour unsigned int image img.

struct Gan_RGBPixel_us** gan_image_get_pixarr_rgb_us Gan_Image   img
 

Return the pixel array from a RGB colour unsigned short image.

Returns the pixel array for the RGB colour unsigned short image img.

struct Gan_RGBAPixel_d** gan_image_get_pixarr_rgba_d Gan_Image   img
 

Return the pixel array from a RGB-colour alpha double image.

Returns the pixel array for the RGB-colour alpha double image img.

struct Gan_RGBAPixel_f** gan_image_get_pixarr_rgba_f Gan_Image   img
 

Return the pixel array from a RGB-colour alpha float image.

Returns the pixel array for the RGB-colour alpha float image img.

struct Gan_RGBAPixel_i** gan_image_get_pixarr_rgba_i Gan_Image   img
 

Return the pixel array from a RGB-colour alpha int image.

Returns the pixel array for the RGB-colour alpha int image img.

struct Gan_RGBAPixel_s** gan_image_get_pixarr_rgba_s Gan_Image   img
 

Return the pixel array from a RGB-colour alpha short image.

Returns the pixel array for the RGB-colour alpha short image img.

struct Gan_RGBAPixel_uc** gan_image_get_pixarr_rgba_uc Gan_Image   img
 

Return the pixel array from a RGB-colour alpha unsigned char image.

Returns the pixel array for the RGB-colour alpha unsigned char image img.

struct Gan_RGBAPixel_ui** gan_image_get_pixarr_rgba_ui Gan_Image   img
 

Return the pixel array from a RGB-colour alpha unsigned int image.

Returns the pixel array for the RGB-colour alpha unsigned int image img.

struct Gan_RGBAPixel_us** gan_image_get_pixarr_rgba_us Gan_Image   img
 

Return the pixel array from a RGB-colour alpha unsigned short image.

Returns the pixel array for the RGB-colour alpha unsigned short image img.

struct Gan_Vector2** gan_image_get_pixarr_vfield2D_d Gan_Image   img
 

Return the pixel array from a 2D vector-field double image.

Returns the pixel array for the 2D vector-field double image img.

struct Gan_Vector2_f** gan_image_get_pixarr_vfield2D_f Gan_Image   img
 

Return the pixel array from a 2D vector-field float image.

Returns the pixel array for the 2D vector-field float image img.

struct Gan_Vector2_i** gan_image_get_pixarr_vfield2D_i Gan_Image   img
 

Return the pixel array from a 2D vector-field int image.

Returns the pixel array for the 2D vector-field int image img.

struct Gan_Vector2_s** gan_image_get_pixarr_vfield2D_s Gan_Image   img
 

Return the pixel array from a 2D vector-field short image.

Returns the pixel array for the 2D vector-field short image img.

struct Gan_Vector3** gan_image_get_pixarr_vfield3D_d Gan_Image   img
 

Return the pixel array from a 3D vector-field double image.

Returns the pixel array for the 3D vector-field double image img.

struct Gan_Vector3_f** gan_image_get_pixarr_vfield3D_f Gan_Image   img
 

Return the pixel array from a 3D vector-field float image.

Returns the pixel array for the 3D vector-field float image img.

struct Gan_Vector3_i** gan_image_get_pixarr_vfield3D_i Gan_Image   img
 

Return the pixel array from a 3D vector-field int image.

Returns the pixel array for the 3D vector-field int image img.

struct Gan_Vector3_s** gan_image_get_pixarr_vfield3D_s Gan_Image   img
 

Return the pixel array from a 3D vector-field short image.

Returns the pixel array for the 3D vector-field short image img.

void* gan_image_get_pixptr Gan_Image   img,
unsigned    row,
unsigned    col
 

Gets a pointer to a pixel from an image.

Parameters:
img The image
row The row position of the pixel
col The column position of the pixel
Returns:
A pointer to the pixel at the given position
Gets the pixel pointer from image img at position row, col.
See also:
gan_image_get_pix().

double* gan_image_get_pixptr_gl_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level double image.

Returns the pointer to the pixel at position row, col in grey-level double image img.

float* gan_image_get_pixptr_gl_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level float image.

Returns the pointer to the pixel at position row, col in grey-level float image img.

int* gan_image_get_pixptr_gl_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level int image.

Returns the pointer to the pixel at position row, col in grey-level int image img.

short* gan_image_get_pixptr_gl_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level short image.

Returns the pointer to the pixel at position row, col in grey-level short image img.

unsigned char* gan_image_get_pixptr_gl_uc Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level unsigned char image.

Returns the pointer to the pixel at position row, col in grey-level unsigned char image img.

unsigned int* gan_image_get_pixptr_gl_ui Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level unsigned int image.

Returns the pointer to the pixel at position row, col in grey-level unsigned int image img.

unsigned short* gan_image_get_pixptr_gl_us Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level unsigned short image.

Returns the pointer to the pixel at position row, col in grey-level unsigned short image img.

struct Gan_GLAPixel_d* gan_image_get_pixptr_gla_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level alpha double image.

Returns the pointer to the pixel at position row, col in grey-level alpha double image img.

struct Gan_GLAPixel_f* gan_image_get_pixptr_gla_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level alpha float image.

Returns the pointer to the pixel at position row, col in grey-level alpha float image img.

struct Gan_GLAPixel_i* gan_image_get_pixptr_gla_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level alpha int image.

Returns the pointer to the pixel at position row, col in grey-level alpha int image img.

struct Gan_GLAPixel_s* gan_image_get_pixptr_gla_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level alpha short image.

Returns the pointer to the pixel at position row, col in grey-level alpha short image img.

struct Gan_GLAPixel_uc* gan_image_get_pixptr_gla_uc Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level alpha unsigned char image.

Returns the pointer to the pixel at position row, col in grey-level alpha unsigned char image img.

struct Gan_GLAPixel_ui* gan_image_get_pixptr_gla_ui Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level alpha unsigned int image.

Returns the pointer to the pixel at position row, col in grey-level alpha unsigned int image img.

struct Gan_GLAPixel_us* gan_image_get_pixptr_gla_us Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level alpha unsigned short image.

Returns the pointer to the pixel at position row, col in grey-level alpha unsigned short image img.

void* * gan_image_get_pixptr_p Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a grey-level void * image.

Returns the pointer to the pixel at position row, col in grey-level void * image img.

struct Gan_RGBPixel_d* gan_image_get_pixptr_rgb_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB colour double image.

Returns the pointer to the pixel at position row, col in RGB colour double image img.

struct Gan_RGBPixel_f* gan_image_get_pixptr_rgb_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB colour float image.

Returns the pointer to the pixel at position row, col in RGB colour float image img.

struct Gan_RGBPixel_i* gan_image_get_pixptr_rgb_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB colour int image.

Returns the pointer to the pixel at position row, col in RGB colour int image img.

struct Gan_RGBPixel_s* gan_image_get_pixptr_rgb_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB colour short image.

Returns the pointer to the pixel at position row, col in RGB colour short image img.

struct Gan_RGBPixel_uc* gan_image_get_pixptr_rgb_uc Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB colour unsigned char image.

Returns the pointer to the pixel at position row, col in RGB colour unsigned char image img.

struct Gan_RGBPixel_ui* gan_image_get_pixptr_rgb_ui Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB colour unsigned int image.

Returns the pointer to the pixel at position row, col in RGB colour unsigned int image img.

struct Gan_RGBPixel_us* gan_image_get_pixptr_rgb_us Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB colour unsigned short image.

Returns the pointer to the pixel at position row, col in RGB colour unsigned short image img.

struct Gan_RGBAPixel_d* gan_image_get_pixptr_rgba_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB-colour alpha double image.

Returns the pointer to the pixel at position row, col in RGB-colour alpha double image img.

struct Gan_RGBAPixel_f* gan_image_get_pixptr_rgba_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB-colour alpha float image.

Returns the pointer to the pixel at position row, col in RGB-colour alpha float image img.

struct Gan_RGBAPixel_i* gan_image_get_pixptr_rgba_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB-colour alpha int image.

Returns the pointer to the pixel at position row, col in RGB-colour alpha int image img.

struct Gan_RGBAPixel_s* gan_image_get_pixptr_rgba_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB-colour alpha short image.

Returns the pointer to the pixel at position row, col in RGB-colour alpha short image img.

struct Gan_RGBAPixel_uc* gan_image_get_pixptr_rgba_uc Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB-colour alpha unsigned char image.

Returns the pointer to the pixel at position row, col in RGB-colour alpha unsigned char image img.

struct Gan_RGBAPixel_ui* gan_image_get_pixptr_rgba_ui Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB-colour alpha unsigned int image.

Returns the pointer to the pixel at position row, col in RGB-colour alpha unsigned int image img.

struct Gan_RGBAPixel_us* gan_image_get_pixptr_rgba_us Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a RGB-colour alpha unsigned short image.

Returns the pointer to the pixel at position row, col in RGB-colour alpha unsigned short image img.

struct Gan_Vector2* gan_image_get_pixptr_vfield2D_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a 2D vector-field double image.

Returns the pointer to the pixel at position row, col in 2D vector-field double image img.

struct Gan_Vector2_f* gan_image_get_pixptr_vfield2D_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a 2D vector-field float image.

Returns the pointer to the pixel at position row, col in 2D vector-field float image img.

struct Gan_Vector2_i* gan_image_get_pixptr_vfield2D_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a 2D vector-field int image.

Returns the pointer to the pixel at position row, col in 2D vector-field int image img.

struct Gan_Vector2_s* gan_image_get_pixptr_vfield2D_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a 2D vector-field short image.

Returns the pointer to the pixel at position row, col in 2D vector-field short image img.

struct Gan_Vector3* gan_image_get_pixptr_vfield3D_d Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a 3D vector-field double image.

Returns the pointer to the pixel at position row, col in 3D vector-field double image img.

struct Gan_Vector3_f* gan_image_get_pixptr_vfield3D_f Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a 3D vector-field float image.

Returns the pointer to the pixel at position row, col in 3D vector-field float image img.

struct Gan_Vector3_i* gan_image_get_pixptr_vfield3D_i Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a 3D vector-field int image.

Returns the pointer to the pixel at position row, col in 3D vector-field int image img.

struct Gan_Vector3_s* gan_image_get_pixptr_vfield3D_s Gan_Image   img,
unsigned    row,
unsigned    col
 

Return a pointer to a pixel from a 3D vector-field short image.

Returns the pointer to the pixel at position row, col in 3D vector-field short image img.

Gan_Bool gan_image_offset_pixel_i Gan_Pixel   pixel,
double    offset
 

Macro: Offset pixel in-place.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Adds all the channels of the given pixel to the given offset factor, overwriting pixel with the result.

Gan_Bool gan_image_offset_pixel_q Gan_Pixel   pixel,
double    offset,
Gan_Pixel   offset_pixel
 

Offset pixel values.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Add each channel of pixel to the given offset factor, writing the result into offset_pixel.

Gan_Bool gan_image_scale_pixel_i Gan_Pixel   pixel,
double    scale
 

Macro: Scale pixel in-place.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Multiplies all the channels of the given pixel by the given scale factor, overwriting pixel with the result.

Gan_Bool gan_image_scale_pixel_q Gan_Pixel   pixel,
double    scale,
Gan_Pixel   scaled_pixel
 

Scale pixel values.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Multiply each channel of pixel by the given scale factor, writing the result into scaled_pixel.

Gan_Bool gan_image_set_pix Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_Pixel   pix
 

Sets a pixel in an image.

Parameters:
img The image
row The row position of the pixel
col The column position of the pixel
pix The pixel to set
Returns:
GAN_TRUE on success, or GAN_FALSE on failure.
Sets the pixel an image img at position row, col to the given value pix.

See also:
gan_image_get_pix().

Gan_Bool gan_image_set_pix_b Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_Bool    pix
 

Macro: Set a pixel in a grey-level Gan_Bool image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gl_d Gan_Image   img,
unsigned    row,
unsigned    col,
double    pix
 

Macro: Set a pixel in a grey-level double image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gl_f Gan_Image   img,
unsigned    row,
unsigned    col,
float    pix
 

Macro: Set a pixel in a grey-level float image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gl_i Gan_Image   img,
unsigned    row,
unsigned    col,
int    pix
 

Macro: Set a pixel in a grey-level int image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gl_s Gan_Image   img,
unsigned    row,
unsigned    col,
short    pix
 

Macro: Set a pixel in a grey-level short image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gl_uc Gan_Image   img,
unsigned    row,
unsigned    col,
unsigned char    pix
 

Macro: Set a pixel in a grey-level unsigned char image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gl_ui Gan_Image   img,
unsigned    row,
unsigned    col,
unsigned int    pix
 

Macro: Set a pixel in a grey-level unsigned int image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gl_ui16 Gan_Image   img,
unsigned    row,
unsigned    col,
16-bit unsigned    pix
 

Macro: Set a pixel in a grey-level 16-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gl_ui32 Gan_Image   img,
unsigned    row,
unsigned    col,
32-bit unsigned    pix
 

Macro: Set a pixel in a grey-level 32-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gl_ui8 Gan_Image   img,
unsigned    row,
unsigned    col,
8-bit unsigned    pix
 

Macro: Set a pixel in a grey-level 8-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gl_us Gan_Image   img,
unsigned    row,
unsigned    col,
unsigned short    pix
 

Macro: Set a pixel in a grey-level unsigned short image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_gla_d Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_GLAPixel_d   pix
 

Macro: Set a pixel in a grey-level alpha double image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level alpha double image img to pix.

Gan_Bool gan_image_set_pix_gla_f Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_GLAPixel_f   pix
 

Macro: Set a pixel in a grey-level alpha float image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level alpha float image img to pix.

Gan_Bool gan_image_set_pix_gla_i Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_GLAPixel_i   pix
 

Macro: Set a pixel in a grey-level alpha int image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level alpha int image img to pix.

Gan_Bool gan_image_set_pix_gla_s Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_GLAPixel_s   pix
 

Macro: Set a pixel in a grey-level alpha short image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level alpha short image img to pix.

Gan_Bool gan_image_set_pix_gla_uc Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_GLAPixel_uc   pix
 

Macro: Set a pixel in a grey-level alpha unsigned char image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level alpha unsigned char image img to pix.

Gan_Bool gan_image_set_pix_gla_ui Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_GLAPixel_ui   pix
 

Macro: Set a pixel in a grey-level alpha unsigned int image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level alpha unsigned int image img to pix.

Gan_Bool gan_image_set_pix_gla_ui16 Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_GLAPixel_ui16 *    pix
 

Macro: Set a pixel in a grey-level alpha 16-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level alpha 16-bit unsigned image img to pix.

Gan_Bool gan_image_set_pix_gla_ui32 Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_GLAPixel_ui32 *    pix
 

Macro: Set a pixel in a grey-level alpha 32-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level alpha 32-bit unsigned image img to pix.

Gan_Bool gan_image_set_pix_gla_ui8 Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_GLAPixel_ui8 *    pix
 

Macro: Set a pixel in a grey-level alpha 8-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level alpha 8-bit unsigned image img to pix.

Gan_Bool gan_image_set_pix_gla_us Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_GLAPixel_us   pix
 

Macro: Set a pixel in a grey-level alpha unsigned short image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level alpha unsigned short image img to pix.

Gan_Bool gan_image_set_pix_p Gan_Image   img,
unsigned    row,
unsigned    col,
void *    pix
 

Macro: Set a pixel in a grey-level void * image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in grey-level image img to pix.

Gan_Bool gan_image_set_pix_rgb_d Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBPixel_d   pix
 

Macro: Set a pixel in a RGB colour double image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB colour double image img to pix.

Gan_Bool gan_image_set_pix_rgb_f Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBPixel_f   pix
 

Macro: Set a pixel in a RGB colour float image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB colour float image img to pix.

Gan_Bool gan_image_set_pix_rgb_i Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBPixel_i   pix
 

Macro: Set a pixel in a RGB colour int image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB colour int image img to pix.

Gan_Bool gan_image_set_pix_rgb_s Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBPixel_s   pix
 

Macro: Set a pixel in a RGB colour short image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB colour short image img to pix.

Gan_Bool gan_image_set_pix_rgb_uc Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBPixel_uc   pix
 

Macro: Set a pixel in a RGB colour unsigned char image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB colour unsigned char image img to pix.

Gan_Bool gan_image_set_pix_rgb_ui Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBPixel_ui   pix
 

Macro: Set a pixel in a RGB colour unsigned int image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB colour unsigned int image img to pix.

Gan_Bool gan_image_set_pix_rgb_ui16 Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_RGBPixel_ui16 *    pix
 

Macro: Set a pixel in a RGB colour 16-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB colour 16-bit unsigned image img to pix.

Gan_Bool gan_image_set_pix_rgb_ui32 Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_RGBPixel_ui32 *    pix
 

Macro: Set a pixel in a RGB colour 32-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB colour 32-bit unsigned image img to pix.

Gan_Bool gan_image_set_pix_rgb_ui8 Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_RGBPixel_ui8 *    pix
 

Macro: Set a pixel in a RGB colour 8-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB colour 8-bit unsigned image img to pix.

Gan_Bool gan_image_set_pix_rgb_us Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBPixel_us   pix
 

Macro: Set a pixel in a RGB colour unsigned short image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB colour unsigned short image img to pix.

Gan_Bool gan_image_set_pix_rgba_d Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBAPixel_d   pix
 

Macro: Set a pixel in a RGB-colour alpha double image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB-colour alpha double image img to pix.

Gan_Bool gan_image_set_pix_rgba_f Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBAPixel_f   pix
 

Macro: Set a pixel in a RGB-colour alpha float image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB-colour alpha float image img to pix.

Gan_Bool gan_image_set_pix_rgba_i Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBAPixel_i   pix
 

Macro: Set a pixel in a RGB-colour alpha int image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB-colour alpha int image img to pix.

Gan_Bool gan_image_set_pix_rgba_s Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBAPixel_s   pix
 

Macro: Set a pixel in a RGB-colour alpha short image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB-colour alpha short image img to pix.

Gan_Bool gan_image_set_pix_rgba_uc Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBAPixel_uc   pix
 

Macro: Set a pixel in a RGB-colour alpha unsigned char image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB-colour alpha unsigned char image img to pix.

Gan_Bool gan_image_set_pix_rgba_ui Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBAPixel_ui   pix
 

Macro: Set a pixel in a RGB-colour alpha unsigned int image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB-colour alpha unsigned int image img to pix.

Gan_Bool gan_image_set_pix_rgba_ui16 Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_RGBAPixel_ui16 *    pix
 

Macro: Set a pixel in a RGB-colour alpha 16-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB-colour alpha 16-bit unsigned image img to pix.

Gan_Bool gan_image_set_pix_rgba_ui32 Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_RGBAPixel_ui32 *    pix
 

Macro: Set a pixel in a RGB-colour alpha 32-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB-colour alpha 32-bit unsigned image img to pix.

Gan_Bool gan_image_set_pix_rgba_ui8 Gan_Image   img,
unsigned    row,
unsigned    col,
Gan_RGBAPixel_ui8 *    pix
 

Macro: Set a pixel in a RGB-colour alpha 8-bit unsigned image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB-colour alpha 8-bit unsigned image img to pix.

Gan_Bool gan_image_set_pix_rgba_us Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_RGBAPixel_us   pix
 

Macro: Set a pixel in a RGB-colour alpha unsigned short image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in RGB-colour alpha unsigned short image img to pix.

Gan_Bool gan_image_set_pix_vfield2D_d Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_Vector2   pix
 

Macro: Set a pixel in a 2D vector-field double image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in 2D vector-field double image img to pix.

Gan_Bool gan_image_set_pix_vfield2D_f Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_Vector2_f   pix
 

Macro: Set a pixel in a 2D vector-field float image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in 2D vector-field float image img to pix.

Gan_Bool gan_image_set_pix_vfield2D_i Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_Vector2_i   pix
 

Macro: Set a pixel in a 2D vector-field int image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in 2D vector-field int image img to pix.

Gan_Bool gan_image_set_pix_vfield2D_s Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_Vector2_s   pix
 

Macro: Set a pixel in a 2D vector-field short image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in 2D vector-field short image img to pix.

Gan_Bool gan_image_set_pix_vfield3D_d Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_Vector3   pix
 

Macro: Set a pixel in a 3D vector-field double image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in 3D vector-field double image img to pix.

Gan_Bool gan_image_set_pix_vfield3D_f Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_Vector3_f   pix
 

Macro: Set a pixel in a 3D vector-field float image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in 3D vector-field float image img to pix.

Gan_Bool gan_image_set_pix_vfield3D_i Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_Vector3_i   pix
 

Macro: Set a pixel in a 3D vector-field int image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in 3D vector-field int image img to pix.

Gan_Bool gan_image_set_pix_vfield3D_s Gan_Image   img,
unsigned    row,
unsigned    col,
struct Gan_Vector3_s   pix
 

Macro: Set a pixel in a 3D vector-field short image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Set the pixel at position row, col in 3D vector-field short image img to pix.

Gan_Bool gan_image_set_pix_zero Gan_Image   img,
unsigned    row,
unsigned    col
 

Sets a pixel in an image to zero.

Parameters:
img The image
row The row position of the pixel
col The column position of the pixel
Returns:
GAN_TRUE on success, or GAN_FALSE on failure.
Sets the pixel in image img at position row, col to zero.
See also:
gan_image_set_pix().

int gan_pixel_d_to_i double    x
 

Macro: Convert a pixel field from double to int type.

Overflow is handled.

short gan_pixel_d_to_s double    x
 

Macro: Convert a pixel field from double to short type.

Overflow is handled.

unsigned char gan_pixel_d_to_uc double    x
 

Macro: Convert a pixel field from double to unsigned char type.

Overflow is handled.

unsigned int gan_pixel_d_to_ui double    x
 

Macro: Convert a pixel field from double to unsigned int type.

Overflow is handled.

unsigned short gan_pixel_d_to_us double    x
 

Macro: Convert a pixel field from double to unsigned short type.

Overflow is handled.

int gan_pixel_f_to_i float    x
 

Macro: Convert a pixel field from float to int type.

Overflow is handled.

short gan_pixel_f_to_s float    x
 

Macro: Convert a pixel field from float to short type.

Overflow is handled.

unsigned char gan_pixel_f_to_uc float    x
 

Macro: Convert a pixel field from float to unsigned char type.

Overflow is handled.

unsigned int gan_pixel_f_to_ui float    x
 

Macro: Convert a pixel field from float to unsigned int type.

Overflow is handled.

unsigned short gan_pixel_f_to_us float    x
 

Macro: Convert a pixel field from float to unsigned short type.

Overflow is handled.

double gan_pixel_i_to_d int    x
 

Macro: Convert a pixel field from int to double type.

float gan_pixel_i_to_f int    x
 

Macro: Convert a pixel field from int to float type.

short gan_pixel_i_to_s int    x
 

Macro: Convert a pixel field from int to short type.

double gan_pixel_rgbad_to_yd Gan_RGBAPixel_d   rgba
 

Convert RGBA double pixel to grey-level double pixel.

float gan_pixel_rgbaf_to_yf Gan_RGBAPixel_f   rgba
 

Convert RGBA float pixel to grey-level float pixel.

unsigned char gan_pixel_rgbauc_to_yuc Gan_RGBAPixel_uc   rgba
 

Convert RGBA unsigned char pixel to grey-level unsigned char pixel.

unsigned int gan_pixel_rgbauc_to_yui Gan_RGBAPixel_uc   rgba
 

Convert RGBA unsigned char pixel to grey-level unsigned int pixel.

unsigned short gan_pixel_rgbauc_to_yus Gan_RGBAPixel_uc   rgba
 

Convert RGBA unsigned char pixel to grey-level unsigned short pixel.

float gan_pixel_rgbaui_to_yf Gan_RGBAPixel_ui   rgba
 

Convert RGBA float pixel to grey-level float pixel.

unsigned char gan_pixel_rgbaus_to_yuc Gan_RGBAPixel_us   rgba
 

Convert RGBA unsigned short pixel to grey-level unsigned char pixel.

unsigned short gan_pixel_rgbaus_to_yus Gan_RGBAPixel_us   rgba
 

Convert RGBA unsigned short pixel to grey-level unsigned short pixel.

double gan_pixel_rgbd_to_yd Gan_RGBPixel_d   rgb
 

Convert RGB double pixel to grey-level double pixel.

float gan_pixel_rgbf_to_yf Gan_RGBPixel_f   rgb
 

Convert RGB float pixel to grey-level float pixel.

unsigned char gan_pixel_rgbuc_to_yuc Gan_RGBPixel_uc   rgb
 

Convert RGB unsigned char pixel to grey-level unsigned char pixel.

unsigned int gan_pixel_rgbuc_to_yui Gan_RGBPixel_uc   rgb
 

Convert RGB unsigned char pixel to grey-level unsigned int pixel.

unsigned short gan_pixel_rgbuc_to_yus Gan_RGBPixel_uc   rgb
 

Convert RGB unsigned char pixel to grey-level unsigned short pixel.

float gan_pixel_rgbui_to_yf Gan_RGBPixel_ui   rgb
 

Convert RGB float pixel to grey-level float pixel.

unsigned char gan_pixel_rgbus_to_yuc Gan_RGBPixel_us   rgb
 

Convert RGB unsigned short pixel to grey-level unsigned char pixel.

unsigned short gan_pixel_rgbus_to_yus Gan_RGBPixel_us   rgb
 

Convert RGB unsigned short pixel to grey-level unsigned short pixel.

double gan_pixel_s_to_d short    x
 

Macro: Convert a pixel field from short to double type.

float gan_pixel_s_to_f short    x
 

Macro: Convert a pixel field from short to float type.

int gan_pixel_s_to_i short    x
 

Macro: Convert a pixel field from short to int type.

double gan_pixel_uc_to_d unsigned char    x
 

Macro: Convert a pixel field from unsigned char to double type.

float gan_pixel_uc_to_f unsigned char    x
 

Macro: Convert a pixel field from unsigned char to float type.

unsigned int gan_pixel_uc_to_ui unsigned char    x
 

Macro: Convert a pixel field from unsigned char to unsigned int type.

unsigned short gan_pixel_uc_to_us unsigned char    x
 

Macro: Convert a pixel field from unsigned char to unsigned short type.

double gan_pixel_ui_to_d unsigned int    x
 

Macro: Convert a pixel field from unsigned int to double type.

float gan_pixel_ui_to_f unsigned int    x
 

Macro: Convert a pixel field from unsigned int to float type.

unsigned char gan_pixel_ui_to_uc unsigned    x
 

Macro: Convert a pixel field from unsigned int to unsigned char type.

unsigned short gan_pixel_ui_to_us unsigned    x
 

Macro: Convert a pixel field from unsigned int to unsigned short type.

double gan_pixel_us_to_d unsigned short    x
 

Macro: Convert a pixel field from unsigned short to double type.

float gan_pixel_us_to_f unsigned short    x
 

Macro: Convert a pixel field from unsigned short to float type.

unsigned char gan_pixel_us_to_uc unsigned short    x
 

Macro: Convert a pixel field from unsigned short to unsigned char type.

unsigned int gan_pixel_us_to_ui unsigned short    x
 

Macro: Convert a pixel field from unsigned short to unsigned int type.


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