GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
driver/Raster.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <grass/gis.h>
4 #include "driver.h"
5 #include "driverlib.h"
6 
7 /******************************************************************************
8  * These routines support the drawing of multi-band images on the graphics
9  * device.
10  ******************************************************************************
11  */
12 
13 void COM_begin_scaled_raster(int mask, int src[2][2], int dst[2][2])
14 {
16  (*driver->Begin_scaled_raster) (mask, src, dst);
17 }
18 
19 int COM_scaled_raster(int n, int row,
20  const unsigned char *red, const unsigned char *grn,
21  const unsigned char *blu, const unsigned char *nul)
22 {
23  if (driver->Scaled_raster)
24  return (*driver->Scaled_raster) (n, row, red, grn, blu, nul);
25 
26  return -1;
27 }
28 
30 {
33 }
void COM_begin_scaled_raster(int, int[2][2], int[2][2])
Definition: driver/Raster.c:13
void COM_end_scaled_raster(void)
Definition: driver/Raster.c:29
void(* Begin_scaled_raster)(int, int[2][2], int[2][2])
Definition: driver.h:48
void(* End_scaled_raster)(void)
Definition: driver.h:53
Definition: driver.h:25
int(* Scaled_raster)(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
Definition: driver.h:49
int COM_scaled_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
Definition: driver/Raster.c:19
int n
Definition: dataquad.c:291