GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
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 }
struct ps_state ps
void output(const char *fmt,...)
void PS_Set_window(double t, double b, double l, double r)
double b
Definition: r_raster.c:39
double l
Definition: r_raster.c:39
double t
Definition: r_raster.c:39
double r
Definition: r_raster.c:39
int encapsulated
Definition: psdriver.h:15