GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-54f2068759
psdriver/set_window.c
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* MODULE: PNG driver
4
* AUTHOR(S): Glynn Clements <glynn@gclements.plus.com>
5
* COPYRIGHT: (C) 2007 Glynn Clements
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
*****************************************************************************/
18
19
#include "
psdriver.h
"
20
21
void
PS_Set_window
(
double
t
,
double
b
,
double
l
,
double
r
)
22
{
23
output
(
"%.1f %.1f %.1f %.1f %s\n"
,
t
,
b
,
l
,
r
,
24
ps
.
encapsulated
?
"EPSWINDOW"
:
"WINDOW"
);
25
}
ps
struct ps_state ps
Definition:
psdriver/graph_set.c:26
output
void output(const char *fmt,...)
Definition:
psdriver/graph_set.c:232
PS_Set_window
void PS_Set_window(double t, double b, double l, double r)
Definition:
psdriver/set_window.c:21
psdriver.h
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
ps_state::encapsulated
int encapsulated
Definition:
psdriver.h:15
lib
psdriver
set_window.c
Generated on Fri Nov 8 2024 06:59:48 for GRASS GIS 8 Programmer's Manual by
1.9.1