colorize

colorize

Synopsis

                    Colorize;
void                colorize_init                       (Colorize *colorize);
void                colorize_calculate                  (Colorize *colorize);
void                colorize                            (Colorize *colorize,
                                                         PixelRegion *srcPR,
                                                         PixelRegion *destPR);

Description

Details

Colorize

typedef struct {
  gdouble hue;
  gdouble saturation;
  gdouble lightness;

  gint    lum_red_lookup[256];
  gint    lum_green_lookup[256];
  gint    lum_blue_lookup[256];

  gint    final_red_lookup[256];
  gint    final_green_lookup[256];
  gint    final_blue_lookup[256];
} Colorize;


colorize_init ()

void                colorize_init                       (Colorize *colorize);


colorize_calculate ()

void                colorize_calculate                  (Colorize *colorize);


colorize ()

void                colorize                            (Colorize *colorize,
                                                         PixelRegion *srcPR,
                                                         PixelRegion *destPR);