GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
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_get_color
unsigned int png_get_color(int r, int g, int b, int a)
Definition:
color_table.c:118
gis.h
g
float g
Definition:
named_colr.c:7
PNG_color_rgb
void PNG_color_rgb(int r, int g, int b)
Identify a color.
Definition:
pngdriver/color.c:32
png
struct png_state png
Definition:
pngdriver/graph_set.c:32
pngdriver.h
GRASS png display driver - header file.
b
double b
Definition:
r_raster.c:39
r
double r
Definition:
r_raster.c:39
png_state::current_color
int current_color
Definition:
pngdriver.h:33
lib
pngdriver
color.c
Generated on Thu Nov 21 2024 07:03:26 for GRASS GIS 8 Programmer's Manual by
1.9.1