GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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 color_table.c:

Go to the source code of this file.

Functions

void png_init_color_table (void)
 
void png_get_pixel (unsigned int pixel, int *r, int *g, int *b, int *a)
 
unsigned int png_get_color (int r, int g, int b, int a)
 

Function Documentation

◆ png_get_color()

unsigned int png_get_color ( int  r,
int  g,
int  b,
int  a 
)

Definition at line 120 of file color_table.c.

References png, and png_state::true_color.

Referenced by PNG_color_rgb(), and PNG_Graph_set().

◆ png_get_pixel()

void png_get_pixel ( unsigned int  pixel,
int *  r,
int *  g,
int *  b,
int *  a 
)

Definition at line 112 of file color_table.c.

References png, and png_state::true_color.

◆ png_init_color_table()

void png_init_color_table ( void  )

Definition at line 73 of file color_table.c.

References png, and png_state::true_color.

Referenced by PNG_Graph_set().