Loading...
Searching...
No Matches
draw_point.c
Go to the documentation of this file.
#include <math.h>
#include "pngdriver.h"
void PNG_draw_point(double fx, double fy)
{
int x = (int)floor(fx + 0.5);
int y = (int)floor(fy + 0.5);
if (x < png.clip_left || x >= png.clip_rite || y < png.clip_top ||
y >= png.clip_bot)
return;
png.grid[y * png.width + x] = png.current_color;
png.modified = 1;
}
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