GRASS 8 Programmer's Manual
8.6.0dev(2026)-5f4f7ad06c
Loading...
Searching...
No Matches
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 ||
10
y >=
png
.clip_bot)
11
return
;
12
13
png
.grid[y *
png
.width +
x
] =
png
.current_color;
14
15
png
.modified = 1;
16
}
AMI_STREAM
Definition
ami_stream.h:153
PNG_draw_point
void PNG_draw_point(double fx, double fy)
Definition
draw_point.c:4
png
struct png_state png
Definition
pngdriver/graph_set.c:32
pngdriver.h
GRASS png display driver - header file.
x
#define x
lib
pngdriver
draw_point.c
Generated on Sat Apr 4 2026 07:00:49 for GRASS 8 Programmer's Manual by
1.9.8