2
\file lib/pngdriver/set_window.c
4
\brief GRASS png display driver - set window
6
(C) 2007-2014 by Glynn Clements and the GRASS Development Team
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
11
\author Per Henrik Johansen (original contributor)
12
\author Glynn Clements
16
#include "pngdriver.h"
21
\param t,b,l,r top, bottom, left, right
23
void PNG_Set_window(double t, double b, double l, double r)
25
png.clip_top = t > 0 ? t : 0;
26
png.clip_bot = b < png.height ? b : png.height;
27
png.clip_left = l > 0 ? l : 0;
28
png.clip_rite = r < png.width ? r : png.width;