GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
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
z
+
Enumerations
a
c
d
e
h
l
m
n
o
p
r
s
t
v
y
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
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
draw_point.c
Go to the documentation of this file.
1
#include <math.h>
2
#include "
pngdriver.h
"
3
4
void
PNG_draw_point
(
double
fx,
double
fy)
5
{
6
int
x
= (int) floor(fx + 0.5);
7
int
y
= (int) floor(fy + 0.5);
8
9
if
(x < png.clip_left || x >=
png
.
clip_rite
|| y < png.clip_top || y >=
png
.
clip_bot
)
10
return
;
11
12
png
.
grid
[y *
png
.
width
+
x
] =
png
.
current_color
;
13
14
png
.
modified
= 1;
15
}
png_state::width
int width
Definition:
pngdriver.h:43
png_state::current_color
int current_color
Definition:
pngdriver.h:34
pngdriver.h
GRASS png display driver - header file.
vertex::y
double y
Definition:
path.h:12
PNG_draw_point
void PNG_draw_point(double fx, double fy)
Definition:
draw_point.c:4
png_state::clip_rite
double clip_rite
Definition:
pngdriver.h:42
png_state::clip_bot
double clip_bot
Definition:
pngdriver.h:42
x
#define x
png
struct png_state png
Definition:
pngdriver/graph_set.c:32
png_state::modified
int modified
Definition:
pngdriver.h:47
png_state::grid
unsigned int * grid
Definition:
pngdriver.h:44
lib
pngdriver
draw_point.c
Generated on Mon May 31 2021 05:21:28 for GRASS GIS 7 Programmer's Manual by
1.8.13