GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pngdriver/Raster.c File Reference
#include <string.h>
#include <math.h>
#include <grass/gis.h>
#include "driver.h"
#include "pngdriver.h"
Include dependency graph for pngdriver/Raster.c:

Go to the source code of this file.

Macros

#define min(a, b)   ((a)<(b)?(a):(b))
 
#define max(a, b)   ((a)>(b)?(a):(b))
 

Functions

void PNG_begin_scaled_raster (int mask, int s[2][2], int d[2][2])
 
int PNG_scaled_raster (int n, int row, const unsigned char *red, const unsigned char *grn, const unsigned char *blu, const unsigned char *nul)
 

Macro Definition Documentation

#define max (   a,
  b 
)    ((a)>(b)?(a):(b))

Definition at line 12 of file pngdriver/Raster.c.

Referenced by PNG_scaled_raster().

#define min (   a,
  b 
)    ((a)<(b)?(a):(b))

Definition at line 9 of file pngdriver/Raster.c.

Referenced by PNG_scaled_raster().

Function Documentation

void PNG_begin_scaled_raster ( int  mask,
int  s[2][2],
int  d[2][2] 
)

Definition at line 60 of file pngdriver/Raster.c.

Referenced by PNG_Driver().

int PNG_scaled_raster ( int  n,
int  row,
const unsigned char *  red,
const unsigned char *  grn,
const unsigned char *  blu,
const unsigned char *  nul 
)

Definition at line 76 of file pngdriver/Raster.c.

References clip_bot, clip_left, clip_rite, clip_top, get_color(), grid, max, min, modified, dialogs::width, and y.

Referenced by PNG_Driver().