grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gsd_img_ppm.c File Reference

OGSF library - PPM stuff. More...

#include <stdlib.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include <grass/ogsf.h>
Include dependency graph for gsd_img_ppm.c:

Go to the source code of this file.

Functions

int GS_write_ppm (const char *name)
 Save current GL screen to ppm file. More...
 
int GS_write_zoom (const char *name, unsigned int xsize, unsigned int ysize)
 Write zoom to file. More...
 

Detailed Description

OGSF library - PPM stuff.

GRASS OpenGL gsurf OGSF Library

(C) 1999-2008 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Bill Brown USACERL, GMSL/University of Illinois
Markus Neteler
Bob Covill
Jaro Hofierka
Doxygenized by Martin Landa <landa.martin gmail.com> (May 2008)

Definition in file gsd_img_ppm.c.

Function Documentation

◆ GS_write_ppm()

int GS_write_ppm ( const char *  name)

Save current GL screen to ppm file.

Parameters
namefile name
Returns
1 on failure
0 on success

Definition at line 41 of file gsd_img_ppm.c.

References _, b, g, G_free(), G_warning(), gsd_getimage(), name, NULL, r, and x.

◆ GS_write_zoom()

int GS_write_zoom ( const char *  name,
unsigned int  xsize,
unsigned int  ysize 
)

Write zoom to file.

Parameters
namefile name
xsize,ysize
Returns
1 on failure
0 on success

Definition at line 88 of file gsd_img_ppm.c.

References _, b, g, G_warning(), gsd_writeView(), name, NULL, r, and x.