GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pngdriver/Color_table.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/colors.h>
#include "pngdriver.h"
Include dependency graph for pngdriver/Color_table.c:

Go to the source code of this file.


void init_color_table (void)
void get_pixel (unsigned int pixel, int *r, int *g, int *b, int *a)
unsigned int get_color (int r, int g, int b, int a)
int PNG_lookup_color (int r, int g, int b)

Function Documentation

unsigned int get_color ( int  r,
int  g,
int  b,
int  a 
void get_pixel ( unsigned int  pixel,
int r,
int g,
int b,
int a 

Definition at line 116 of file pngdriver/Color_table.c.

References true_color.

Referenced by PNG_draw_bitmap(), write_bmp(), write_pgm(), write_png(), and write_ppm().

void init_color_table ( void  )

Definition at line 77 of file pngdriver/Color_table.c.

Referenced by PNG_Graph_set(), and PS_Graph_set().

int PNG_lookup_color ( int  r,
int  g,
int  b 

Definition at line 130 of file pngdriver/Color_table.c.

References b, g, has_alpha, r, and true_color.

Referenced by PNG_Driver().