GRASS Programmer's Manual  6.4.2(2012)
 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 }