GRASS 8 Programmer's Manual
8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
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
SPDX-FileCopyrightText: 2003-2014 Per Henrik Johansen
7
SPDX-FileCopyrightText: GRASS Development Team
8
SPDX-License-Identifier: GPL-2.0-or-later
9
10
\author Per Henrik Johansen (original contributor)
11
\author Glynn Clements
12
*/
13
14
#include <
grass/gis.h
>
15
#include "
pngdriver.h
"
16
17
/*!
18
\brief Identify a color
19
20
Identify a color that has been set in the reset_color() (found in Reset_clr.c
21
file in this directory). Subsequent graphics calls will use this color.
22
23
Called by:
24
Color() in ../lib/Color.c
25
26
\param r red color value
27
\param g green color value
28
\param b blue color value
29
*/
30
void
PNG_color_rgb
(
int
r
,
int
g
,
int
b
)
31
{
32
png
.current_color =
png_get_color
(
r
,
g
,
b
, 0);
33
}
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:30
png
struct png_state png
Definition
pngdriver/graph_set.c:31
pngdriver.h
GRASS png display driver - header file.
b
double b
Definition
r_raster.c:37
r
double r
Definition
r_raster.c:37
lib
pngdriver
color.c
Generated on Mon Sep 14 2026 06:57:42 for GRASS 8 Programmer's Manual by
1.9.8