GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
pngdriver/color.c
Go to the documentation of this file.
1
/*!
2
\file lib/pngdriver/color.c
3
4
\brief GRASS png display driver - PNG_color_rgb
5
6
(C) 2003-2014 by Per Henrik Johansen and the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Per Henrik Johansen (original contributor)
12
\author Glynn Clements
13
*/
14
15
#include <
grass/gis.h
>
16
#include "
pngdriver.h
"
17
18
/*!
19
\brief Identify a color
20
21
Identify a color that has been set in the reset_color() (found in Reset_clr.c
22
file in this directory). Subsequent graphics calls will use this color.
23
24
Called by:
25
Color() in ../lib/Color.c
26
27
\param r red color value
28
\param g green color value
29
\param b blue color value
30
*/
31
32
void
PNG_color_rgb
(
int
r
,
int
g
,
int
b
)
33
{
34
png
.
current_color
=
png_get_color
(r, g, b, 0);
35
}
png_state::current_color
int current_color
Definition:
pngdriver.h:34
pngdriver.h
GRASS png display driver - header file.
png
struct png_state png
Definition:
pngdriver/graph_set.c:32
gis.h
png_get_color
unsigned int png_get_color(int r, int g, int b, int a)
Definition:
color_table.c:120
b
double b
Definition:
r_raster.c:39
g
float g
Definition:
named_colr.c:8
PNG_color_rgb
void PNG_color_rgb(int r, int g, int b)
Identify a color.
Definition:
pngdriver/color.c:32
r
double r
Definition:
r_raster.c:39
lib
pngdriver
color.c
Generated on Mon May 31 2021 05:21:28 for GRASS GIS 7 Programmer's Manual by
1.8.13