GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-565e82de51
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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 Mar 20 2025 07:33:23 for GRASS GIS 8 Programmer's Manual by
1.9.1