GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-565e82de51
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
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
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
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
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
pngdriver/set_window.c
Go to the documentation of this file.
1
/*!
2
\file lib/pngdriver/set_window.c
3
4
\brief GRASS png display driver - set window
5
6
(C) 2007-2014 by Glynn Clements and the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Per Henrik Johansen (original contributor)
12
\author Glynn Clements
13
*/
14
15
#include <math.h>
16
#include "
pngdriver.h
"
17
18
/*!
19
\brief Set window
20
21
\param t,b,l,r top, bottom, left, right
22
*/
23
void
PNG_Set_window
(
double
t
,
double
b
,
double
l
,
double
r
)
24
{
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
;
29
}
png
struct png_state png
Definition:
pngdriver/graph_set.c:32
PNG_Set_window
void PNG_Set_window(double t, double b, double l, double r)
Set window.
Definition:
pngdriver/set_window.c:23
pngdriver.h
GRASS png display driver - header file.
b
double b
Definition:
r_raster.c:39
l
double l
Definition:
r_raster.c:39
t
double t
Definition:
r_raster.c:39
r
double r
Definition:
r_raster.c:39
png_state::clip_left
double clip_left
Definition:
pngdriver.h:41
png_state::clip_bot
double clip_bot
Definition:
pngdriver.h:41
png_state::clip_top
double clip_top
Definition:
pngdriver.h:41
png_state::height
int height
Definition:
pngdriver.h:42
png_state::width
int width
Definition:
pngdriver.h:42
png_state::clip_rite
double clip_rite
Definition:
pngdriver.h:41
lib
pngdriver
set_window.c
Generated on Thu Mar 20 2025 07:33:30 for GRASS GIS 8 Programmer's Manual by
1.9.1